From b7127176a15a4ae09c7d21c3457c52e26974ca44 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 26 Jun 2015 01:38: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 git-svn-id: https://develop.svn.wordpress.org/trunk@32950 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php index ab561af548..8493b40b36 100644 --- a/src/wp-includes/ms-functions.php +++ b/src/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?