diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index 3ec716e08e..1d132b372f 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -143,8 +143,7 @@ function edit_user( $user_id = 0 ) { $errors->add( 'user_login', __( 'ERROR: 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', __( 'ERROR: Sorry, that username is not allowed.' ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index b3b571bf7c..2f4a8e3173 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.