Changeset 18513 for trunk/wp-includes/pluggable.php
- Timestamp:
- 08/05/2011 04:57:31 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/wp-includes/pluggable.php
r18504 r18513 200 200 201 201 return $user; 202 }203 endif;204 205 if ( !function_exists('get_userdatabylogin') ) :206 /**207 * Retrieve user info by login name.208 *209 * @since 0.71210 *211 * @param string $user_login User's username212 * @return bool|object False on failure, User DB row object213 */214 function get_userdatabylogin($user_login) {215 return get_user_by('login', $user_login);216 }217 endif;218 219 if ( !function_exists('get_user_by_email') ) :220 /**221 * Retrieve user info by email.222 *223 * @since 2.5224 *225 * @param string $email User's email address226 * @return bool|object False on failure, User DB row object227 */228 function get_user_by_email($email) {229 return get_user_by('email', $email);230 202 } 231 203 endif; … … 595 567 } 596 568 597 $user = get_user databylogin($username);569 $user = get_user_by('login', $username); 598 570 if ( ! $user ) { 599 571 do_action('auth_cookie_bad_username', $cookie_elements);
Note: See TracChangeset
for help on using the changeset viewer.