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:
Sergey Biryukov 2024-12-23 20:06:25 +00:00
parent 097229b3ab
commit 2a72efd451
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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.