From 8aa7fb88f0ef6c025360fb8923c0a980bb6bf2b9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 15 Oct 2015 05:46:24 +0000 Subject: [PATCH] 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 --- wp-admin/includes/user.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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.