Changeset 27351
- Timestamp:
- 03/02/2014 06:20:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r27350 r27351 103 103 * Authenticate the user using the username and password. 104 104 */ 105 add_filter('authenticate', 'wp_authenticate_username_password', 20, 3);106 105 function wp_authenticate_username_password($user, $username, $password) { 107 if ( is_a($user, 'WP_User') ) { return $user; } 106 if ( is_a( $user, 'WP_User' ) ) { 107 return $user; 108 } 108 109 109 110 if ( empty($username) || empty($password) ) { … … 151 152 */ 152 153 function wp_authenticate_cookie($user, $username, $password) { 153 if ( is_a($user, 'WP_User') ) { return $user; } 154 if ( is_a( $user, 'WP_User' ) ) { 155 return $user; 156 } 154 157 155 158 if ( empty($username) && empty($password) ) {
Note: See TracChangeset
for help on using the changeset viewer.