Changeset 36313
- Timestamp:
- 01/15/2016 10:46:38 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r36311 r36313 63 63 * @global WP_User $current_user Checks if the current user is set. 64 64 * 65 * @return bool |WP_User WP_User instance on success, false on XMLRPC Request and invalid auth cookie.65 * @return bool Current WP_User instance. 66 66 */ 67 67 function wp_get_current_user() { … … 84 84 $current_user = null; 85 85 wp_set_current_user( 0 ); 86 return false;86 return $current_user; 87 87 } 88 88 89 89 if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST ) { 90 90 wp_set_current_user( 0 ); 91 return false;91 return $current_user; 92 92 } 93 93 … … 108 108 if ( ! $user_id ) { 109 109 wp_set_current_user( 0 ); 110 return false;110 return $current_user; 111 111 } 112 112
Note: See TracChangeset
for help on using the changeset viewer.