]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/user.php
WordPress 3.7.1
[autoinstalls/wordpress.git] / wp-includes / user.php
index 9a60cd206904116e33997625c8754c14fb9a5a2c..a0cb8d815fba9608e802e206a3594a2865a2109d 100644 (file)
@@ -212,6 +212,8 @@ function count_many_users_posts( $users, $post_type = 'post', $public_only = fal
  * @return int The current user's ID
  */
 function get_current_user_id() {
+       if ( ! function_exists( 'wp_get_current_user' ) )
+               return 0;
        $user = wp_get_current_user();
        return ( isset( $user->ID ) ? (int) $user->ID : 0 );
 }