Remove a one-time variable from `edit_user()` added in [35189].
See #27317. Built from https://develop.svn.wordpress.org/trunk@35190 git-svn-id: http://core.svn.wordpress.org/trunk@35156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7f08716c16
commit
8aa7fb88f0
|
@ -143,8 +143,7 @@ function edit_user( $user_id = 0 ) {
|
|||
$errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' ));
|
||||
|
||||
/** This filter is documented in wp-includes/user-functions.php */
|
||||
$usernames = apply_filters( 'illegal_user_logins', array() );
|
||||
if ( in_array( $user->user_login, $usernames ) ) {
|
||||
if ( in_array( $user->user_login, apply_filters( 'illegal_user_logins', array() ) ) ) {
|
||||
$errors->add( 'illegal_user_login', __( '<strong>ERROR</strong>: Sorry, that username is not allowed.' ) );
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35189';
|
||||
$wp_version = '4.4-alpha-35190';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue