From 4df2bd0b2ae55fe07c6e84bdc7bef9e9c5c332a7 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 26 Jun 2015 01:39:25 +0000 Subject: [PATCH] Remove an undeeded space concatenation from `wpmu_validate_user_signup()`. This was previously used to prevent `strpos()` returning 0, which is not needed after r32942. See #32444 Built from https://develop.svn.wordpress.org/trunk@32950 git-svn-id: http://core.svn.wordpress.org/trunk@32921 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index ab561af548..8493b40b36 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -494,7 +494,7 @@ function wpmu_validate_user_signup($user_name, $user_email) { if ( strlen( $user_name ) < 4 ) $errors->add('user_name', __( 'Username must be at least 4 characters.' ) ); - if ( strpos( ' ' . $user_name, '_' ) !== false ) + if ( strpos( $user_name, '_' ) !== false ) $errors->add( 'user_name', __( 'Sorry, usernames may not contain the character “_”!' ) ); // all numeric? diff --git a/wp-includes/version.php b/wp-includes/version.php index 0a9a16a556..45d1f1b211 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32949'; +$wp_version = '4.3-alpha-32950'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.