mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 13:41:24 +01:00
wpmu_validate_user_signup()
should strictly check against false
when using strpos()
.
See #32444. Built from https://develop.svn.wordpress.org/trunk@32942 git-svn-id: http://core.svn.wordpress.org/trunk@32913 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b3ecfda08d
commit
aaa99969e4
@ -494,7 +494,7 @@ function wpmu_validate_user_signup($user_name, $user_email) {
|
|||||||
if ( strlen( $user_name ) < 4 )
|
if ( strlen( $user_name ) < 4 )
|
||||||
$errors->add('user_name', __( 'Username must be at least 4 characters.' ) );
|
$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 “_”!' ) );
|
$errors->add( 'user_name', __( 'Sorry, usernames may not contain the character “_”!' ) );
|
||||||
|
|
||||||
// all numeric?
|
// all numeric?
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32941';
|
$wp_version = '4.3-alpha-32942';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user