Make WordPress Core

Ticket #43404: wp-activate.diff

File wp-activate.diff, 1.2 KB (added by GaryJ, 7 years ago)
  • src/wp-activate.php

    diff --git src/wp-activate.php src/wp-activate.php
    index 5150c299f4..9d62c58b70 100644
    get_header( 'wp-activate' ); 
    9999                        <h2><?php _e( 'Your account is now active!' ); ?></h2>
    100100                                <?php
    101101                                echo '<p class="lead-in">';
    102                                 if ( $signup->domain . $signup->path == '' ) {
     102                                if ( '' === $signup->domain . $signup->path ) {
    103103                                        printf(
    104104                                                /* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */
    105105                                                __( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
    get_header( 'wp-activate' ); 
    137137                        </div>
    138138
    139139                        <?php
    140                         if ( $url && $url != network_home_url( '', 'http' ) ) :
     140                        if ( $url && network_home_url( '', 'http' ) !== $url ) :
    141141                                switch_to_blog( (int) $result['blog_id'] );
    142142                                $login_url = wp_login_url();
    143143                                restore_current_blog();