Ticket #22516: 22516.diff
File 22516.diff, 497 bytes (added by , 12 years ago) |
---|
-
wp-includes/user.php
70 70 */ 71 71 add_filter('authenticate', 'wp_authenticate_username_password', 20, 3); 72 72 function wp_authenticate_username_password($user, $username, $password) { 73 if ( is_wp_error( $user ) ) { return $user; } 73 74 if ( is_a($user, 'WP_User') ) { return $user; } 74 75 75 76 if ( empty($username) || empty($password) ) {