Skip to content

Commit 8f6f809

Browse files
Coding Standards: Replace loose comparison in wpmu_welcome_notification().
Follow-up to [https://mu.trac.wordpress.org/changeset/543 mu:543]. Props debarghyabanerjee, aristath, poena, afercia, SergeyBiryukov. Fixes #62283. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59574 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8da02a8 commit 8f6f809

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/wp-includes/ms-functions.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) {
726726
* unless it's the user's own username.
727727
*/
728728
if ( username_exists( $blogname ) ) {
729-
if ( ! is_object( $user ) || ( is_object( $user ) && ( $user->user_login !== $blogname ) ) ) {
729+
if ( ! is_object( $user ) || ( is_object( $user ) && $user->user_login !== $blogname ) ) {
730730
$errors->add( 'blogname', __( 'Sorry, that site is reserved!' ) );
731731
}
732732
}
@@ -1632,7 +1632,8 @@ function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta
16321632
$switched_locale = switch_to_user_locale( $user_id );
16331633

16341634
$welcome_email = get_site_option( 'welcome_email' );
1635-
if ( false == $welcome_email ) {
1635+
1636+
if ( ! $welcome_email ) {
16361637
/* translators: Do not translate USERNAME, SITE_NAME, BLOG_URL, PASSWORD: those are placeholders. */
16371638
$welcome_email = __(
16381639
'Howdy USERNAME,

0 commit comments

Comments
 (0)