Make WordPress Core


Ignore:
Timestamp:
10/15/2015 05:45:50 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Remove a one-time variable from edit_user() added in [35189].

See #27317.

File:
1 edited

Legend:

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

    r35189 r35190  
    144144
    145145    /** This filter is documented in wp-includes/user-functions.php */
    146     $usernames = apply_filters( 'illegal_user_logins', array() );
    147     if ( in_array( $user->user_login, $usernames ) ) {
     146    if ( in_array( $user->user_login, apply_filters( 'illegal_user_logins', array() ) ) ) {
    148147        $errors->add( 'illegal_user_login', __( '<strong>ERROR</strong>: Sorry, that username is not allowed.' ) );
    149148    }
Note: See TracChangeset for help on using the changeset viewer.