mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Coding Standards: Use strict comparison in wpmu_validate_user_signup()
.
Follow-up to [14298], [19852]. Props debarghyabanerjee. See #62283. Built from https://develop.svn.wordpress.org/trunk@59557 git-svn-id: http://core.svn.wordpress.org/trunk@58943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
097229b3ab
commit
2a72efd451
@ -462,7 +462,7 @@ function wpmu_validate_user_signup( $user_name, $user_email ) {
|
||||
$orig_username = $user_name;
|
||||
$user_name = preg_replace( '/\s+/', '', sanitize_user( $user_name, true ) );
|
||||
|
||||
if ( $user_name != $orig_username || preg_match( '/[^a-z0-9]/', $user_name ) ) {
|
||||
if ( $user_name !== $orig_username || preg_match( '/[^a-z0-9]/', $user_name ) ) {
|
||||
$errors->add( 'user_name', __( 'Usernames can only contain lowercase letters (a-z) and numbers.' ) );
|
||||
$user_name = $orig_username;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59556';
|
||||
$wp_version = '6.8-alpha-59557';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user