Ticket #46349: 46349.4.diff
File 46349.4.diff, 3.8 KB (added by , 6 years ago) |
---|
-
src/wp-login.php
92 92 <?php 93 93 94 94 wp_enqueue_style( 'login' ); 95 wp_enqueue_style( 'common' ); 95 96 96 97 /* 97 98 * Remove all stored post data on logging out. … … 444 445 $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data ); 445 446 446 447 if ( $message && ! wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) { 447 /* translators: URL to support page for resetting your password */448 448 $support = __( 'https://wordpress.org/support/article/resetting-your-password/' ); 449 449 $errors->add( 450 450 'retrieve_password_email_failure', 451 451 sprintf( 452 /* translators: %s: URL to support page for resetting your password */ 452 453 __( '<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>.' ), 453 454 esc_url( $support ) 454 455 ) … … 500 501 501 502 $url = dirname( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] ) ); 502 503 503 if ( $url !== get_option( 'siteurl' )) {504 if ( get_option( 'siteurl' ) !== $url ) { 504 505 update_option( 'siteurl', $url ); 505 506 } 506 507 } … … 604 605 exit; 605 606 } 606 607 607 login_header( __( 'Confirm your admin email' ), '', $errors );608 login_header( __( 'Confirm your administration email' ), '', $errors ); 608 609 609 610 /** 610 611 * Fires before the admin email confirm form. … … 635 636 <?php _e( 'Administration email verification' ); ?> 636 637 </h1> 637 638 <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"> 639 642 <?php 640 643 641 644 /* translators: URL to the WordPress help section about admin email. */ … … 642 645 $admin_email_help_url = __( 'https://wordpress.org/support/article/settings-general-screen/#email-address' ); 643 646 644 647 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>', 646 649 esc_url( $admin_email_help_url ), 647 __( 'Why is this important?' ) 650 __( 'Learn more about the administration email and why it’s important.' ), 651 sprintf( 652 '<span class="screen-reader-text"> %s</span>', 653 /* translators: accessibility text */ 654 __( '(opens in a new tab)' ) 655 ) 648 656 ); 649 650 657 ?> 651 658 </p> 652 659 <p class="admin-email__details"> 653 660 <?php 654 655 661 printf( 662 /* translators: %s: the current administration email */ 656 663 __( 'Current administration email: <strong>%s</strong>' ), 657 664 esc_html( $admin_email ) 658 665 ); 659 660 666 ?> 661 667 </p> 662 <p class="admin-email__details">663 <?php _e( 'This email may be different from your personal email address.' ); ?>664 <?php665 668 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 675 669 <div class="admin-email__actions"> 676 670 <div class="admin-email__actions-primary"> 677 671 <?php … … 1251 1245 } 1252 1246 } 1253 1247 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 ) ) { 1255 1249 // 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. 1256 1250 if ( is_multisite() && ! get_active_blog_for_user( $user->ID ) && ! is_super_admin( $user->ID ) ) { 1257 1251 $redirect_to = user_admin_url();