Changeset 28007
- Timestamp:
- 04/07/2014 09:17:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r27825 r28007 67 67 * 68 68 * Will set the current user, if the current user is not set. The current user 69 * will be set to the logged in person. If no user is loggedin, then it will69 * will be set to the logged-in person. If no user is logged-in, then it will 70 70 * set the current user to 0, which is invalid and won't have any permissions. 71 71 * 72 72 * @since 0.71 73 * 73 74 * @uses $current_user Checks if the current user is set 74 75 * @uses wp_validate_auth_cookie() Retrieves current logged in user. 75 76 * 76 * @return bool|null False on XML RPC Request and invalid auth cookie. Null when current user set77 * @return bool|null False on XML-RPC Request and invalid auth cookie. Null when current user set. 77 78 */ 78 79 function get_currentuserinfo() { … … 103 104 104 105 /** 105 * Determine the current user based on request data.106 * Filter the current user. 106 107 * 107 108 * The default filters use this to determine the current user from the 108 109 * request's cookies, if available. 109 110 * 111 * Returning a value of false will effectively short-circuit setting 112 * the current user. 113 * 110 114 * @since 3.9.0 111 115 * 112 * @param int|bool $user_id User ID if determined, orfalse otherwise.116 * @param int|bool $user_id User ID if one has been determined, false otherwise. 113 117 */ 114 118 $user_id = apply_filters( 'determine_current_user', false );
Note: See TracChangeset
for help on using the changeset viewer.