WordPress.org

Make WordPress Core

Changeset 27351


Ignore:
Timestamp:
03/02/2014 06:20:06 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Remove redundant add_filter() call. see [24848]. fixes #27255.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r27350 r27351  
    103103 * Authenticate the user using the username and password.
    104104 */
    105 add_filter('authenticate', 'wp_authenticate_username_password', 20, 3);
    106105function 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    }
    108109
    109110    if ( empty($username) || empty($password) ) {
     
    151152 */
    152153function 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    }
    154157
    155158    if ( empty($username) && empty($password) ) {
Note: See TracChangeset for help on using the changeset viewer.