Make WordPress Core

Ticket #46349: 46349.4.diff

File 46349.4.diff, 3.8 KB (added by afercia, 6 years ago)
  • src/wp-login.php

     
    9292        <?php
    9393
    9494        wp_enqueue_style( 'login' );
     95        wp_enqueue_style( 'common' );
    9596
    9697        /*
    9798         * Remove all stored post data on logging out.
     
    444445        $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data );
    445446
    446447        if ( $message && ! wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) {
    447                 /* translators: URL to support page for resetting your password */
    448448                $support = __( 'https://wordpress.org/support/article/resetting-your-password/' );
    449449                $errors->add(
    450450                        'retrieve_password_email_failure',
    451451                        sprintf(
     452                                /* translators: %s: URL to support page for resetting your password */
    452453                                __( '<strong>ERROR</strong>: The email could not be sent. Your site may not be correctly configured to send emails. <a href="%s">Get support for resetting your password</a>.' ),
    453454                                esc_url( $support )
    454455                        )
     
    500501
    501502        $url = dirname( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] ) );
    502503
    503         if ( $url !== get_option( 'siteurl' ) ) {
     504        if ( get_option( 'siteurl' ) !== $url ) {
    504505                update_option( 'siteurl', $url );
    505506        }
    506507}
     
    604605                        exit;
    605606                }
    606607
    607                 login_header( __( 'Confirm your admin email' ), '', $errors );
     608                login_header( __( 'Confirm your administration email' ), '', $errors );
    608609
    609610                /**
    610611                * Fires before the admin email confirm form.
     
    635636                                <?php _e( 'Administration email verification' ); ?>
    636637                        </h1>
    637638                        <p class="admin-email__details">
    638                                 <?php _e( 'Please verify that the <strong>administration email</strong> for this website is still correct.' ); ?>
     639                                <?php _e( 'Please verify that the <strong>administration email</strong> for this website is still correct. This email may be different from your personal email address.' ); ?>
     640                        </p>
     641                        <p class="admin-email__details">
    639642                                <?php
    640643
    641644                                /* translators: URL to the WordPress help section about admin email. */
     
    642645                                $admin_email_help_url = __( 'https://wordpress.org/support/article/settings-general-screen/#email-address' );
    643646
    644647                                printf(
    645                                         '<a href="%s" rel="noopener noreferrer" target="_blank">%s</a>',
     648                                        '<a href="%1$s" rel="noopener noreferrer" target="_blank">%2$s%3$s</a>',
    646649                                        esc_url( $admin_email_help_url ),
    647                                         __( 'Why is this important?' )
     650                                        __( 'Learn more about the administration email and why it&#8217;s important.' ),
     651                                        sprintf(
     652                                                '<span class="screen-reader-text"> %s</span>',
     653                                                /* translators: accessibility text */
     654                                                __( '(opens in a new tab)' )
     655                                        )
    648656                                );
    649 
    650657                                ?>
    651658                        </p>
    652659                        <p class="admin-email__details">
    653660                                <?php
    654 
    655661                                printf(
     662                                        /* translators: %s: the current administration email */
    656663                                        __( 'Current administration email: <strong>%s</strong>' ),
    657664                                        esc_html( $admin_email )
    658665                                );
    659 
    660666                                ?>
    661667                        </p>
    662                         <p class="admin-email__details">
    663                                 <?php _e( 'This email may be different from your personal email address.' ); ?>
    664                                 <?php
    665668
    666                                 printf(
    667                                         '<a href="%s" rel="noopener noreferrer" target="_blank">%s</a>',
    668                                         esc_url( $admin_email_help_url ),
    669                                         __( 'Learn more.' )
    670                                 );
    671 
    672                                 ?>
    673                         </p>
    674 
    675669                        <div class="admin-email__actions">
    676670                                <div class="admin-email__actions-primary">
    677671                                        <?php
     
    12511245                                }
    12521246                        }
    12531247
    1254                         if ( ( empty( $redirect_to ) || $redirect_to === 'wp-admin/' || $redirect_to == admin_url() ) ) {
     1248                        if ( ( empty( $redirect_to ) || 'wp-admin/' === $redirect_to || admin_url() == $redirect_to ) ) {
    12551249                                // If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.
    12561250                                if ( is_multisite() && ! get_active_blog_for_user( $user->ID ) && ! is_super_admin( $user->ID ) ) {
    12571251                                        $redirect_to = user_admin_url();