WordPress.org

Make WordPress Core

Ticket #47158: 47158.diff

File 47158.diff, 3.1 KB (added by dimadin, 21 months ago)
  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index e3160bb390..ad02909c74 100644
    function wp_dashboard_php_nag() { 
    16281628        <p><?php echo $msg; ?></p>
    16291629
    16301630        <h3><?php _e( 'What is PHP and how does it affect my site?' ); ?></h3>
    1631         <p><?php _e( 'PHP is the programming language we use to build and maintain WordPress. Newer versions of PHP are both faster and more secure, so updating will have a positive effect on your sites performance.' ); ?></p>
     1631        <p><?php _e( 'PHP is the programming language we use to build and maintain WordPress. Newer versions of PHP are both faster and more secure, so updating will have a positive effect on your site&#8217;s performance.' ); ?></p>
    16321632
    16331633        <p class="button-container">
    16341634                <?php
  • src/wp-admin/includes/file.php

    diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
    index 1c347cb020..cd3551bfad 100644
    function verify_file_signature( $filename, $signatures, $filename_for_errors = f 
    11871187                return new WP_Error(
    11881188                        'signature_verification_unsupported',
    11891189                        sprintf(
    1190                                 /* translators: 1: The filename of the package. */
    1191                                 __( 'The authenticity of %1$s could not be verified as signature verification is unavailable on this system.' ),
     1190                                /* translators: %s: The filename of the package. */
     1191                                __( 'The authenticity of %s could not be verified as signature verification is unavailable on this system.' ),
    11921192                                '<span class="code">' . esc_html( $filename_for_errors ) . '</span>'
    11931193                        ),
    11941194                        array(
  • src/wp-admin/includes/theme.php

    diff --git src/wp-admin/includes/theme.php src/wp-admin/includes/theme.php
    index 5283cea8bc..b1e0f2f900 100644
    function customize_themes_print_templates() { 
    723723                                                        {{{ data.stars }}}
    724724                                                        <a class="num-ratings" target="_blank" href="{{ data.reviews_url }}">
    725725                                                                <?php
    726                                                                 /* translators: %s: number of ratings */
    727                                                                 echo sprintf( __( '(%s ratings) <span class="screen-reader-text">link to view ratings opens in a new tab</span>' ), '{{ data.num_ratings }}' );
     726                                                                printf(
     727                                                                        '%1$s<span class="screen-reader-text"> %2$s</span>',
     728                                                                        /* translators: %s: number of ratings */
     729                                                                        sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' ),
     730                                                                        /* translators: accessibility text */
     731                                                                        __( '(opens in a new tab)' )
     732                                                                );
    728733                                                                ?>
    729734                                                        </a>
    730735                                                </div>
  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index d9b2554783..5ecf5f0dbf 100644
    function retrieve_password() { 
    426426        $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data );
    427427
    428428        if ( $message && ! wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) {
    429                 wp_die( __( 'The email could not be sent.' ) . "<br />\n" . __( 'Possible reason: your host may have disabled the mail() function.' ) );
     429                wp_die( __( 'The email could not be sent. Possible reason: your host may have disabled the mail() function.' ) );
    430430        }
    431431
    432432        return true;