Make WordPress Core

Ticket #53843: 53843.diff

File 53843.diff, 10.8 KB (added by dhruval04, 15 months ago)
  • src/wp-admin/includes/class-wp-site-health.php

    diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php
    index 4631f98d10..6ce9719ffe 100644
    a b class WP_Site_Health { 
    746746                                )
    747747                        ),
    748748                        'actions'     => sprintf(
    749                                 '<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     749                                '<p><a href="%s" target="_blank">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    750750                                esc_url( wp_get_update_php_url() ),
    751751                                __( 'Learn more about updating PHP' ),
    752752                                /* translators: Hidden accessibility text. */
    class WP_Site_Health { 
    890890                                        __( 'The WordPress Hosting Team maintains a list of those modules, both recommended and required, in <a href="%1$s" %2$s>the team handbook%3$s</a>.' ),
    891891                                        /* translators: Localized team handbook, if one exists. */
    892892                                        esc_url( __( 'https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions' ) ),
    893                                         'target="_blank" rel="noopener"',
     893                                        'target="_blank"',
    894894                                        sprintf(
    895895                                                ' <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
    896896                                                /* translators: Hidden accessibility text. */
    class WP_Site_Health { 
    12161216                                __( 'The SQL server is a required piece of software for the database WordPress uses to store all your site&#8217;s content and settings.' )
    12171217                        ),
    12181218                        'actions'     => sprintf(
    1219                                 '<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1219                                '<p><a href="%s" target="_blank">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    12201220                                /* translators: Localized version of WordPress requirements if one exists. */
    12211221                                esc_url( __( 'https://wordpress.org/about/requirements/' ) ),
    12221222                                __( 'Learn more about what WordPress requires to run.' ),
    class WP_Site_Health { 
    14561456                        );
    14571457
    14581458                        $result['actions'] = sprintf(
    1459                                 '<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1459                                '<p><a href="%s" target="_blank">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    14601460                                /* translators: Localized Support reference. */
    14611461                                esc_url( __( 'https://wordpress.org/support/forums/' ) ),
    14621462                                __( 'Get help resolving this issue.' ),
    class WP_Site_Health { 
    14941494                                __( 'Debug mode is often enabled to gather more details about an error or site failure, but may contain sensitive information which should not be available on a publicly available website.' )
    14951495                        ),
    14961496                        'actions'     => sprintf(
    1497                                 '<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1497                                '<p><a href="%s" target="_blank">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    14981498                                /* translators: Documentation explaining debugging in WordPress. */
    14991499                                esc_url( __( 'https://wordpress.org/documentation/article/debugging-in-wordpress/' ) ),
    15001500                                __( 'Learn more about debugging in WordPress.' ),
    class WP_Site_Health { 
    15751575                                __( 'An HTTPS connection is a more secure way of browsing the web. Many services now have HTTPS as a requirement. HTTPS allows you to take advantage of new features that can increase site speed, improve search rankings, and gain the trust of your visitors by helping to protect their online privacy.' )
    15761576                        ),
    15771577                        'actions'     => sprintf(
    1578                                 '<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1578                                '<p><a href="%s" target="_blank">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    15791579                                esc_url( $default_update_url ),
    15801580                                __( 'Learn more about why you should use HTTPS' ),
    15811581                                /* translators: Hidden accessibility text. */
    class WP_Site_Health { 
    16571657
    16581658                                        if ( ! empty( $direct_update_url ) ) {
    16591659                                                $result['actions'] = sprintf(
    1660                                                         '<p class="button-container"><a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1660                                                        '<p class="button-container"><a class="button button-primary" href="%1$s" target="_blank">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    16611661                                                        esc_url( $direct_update_url ),
    16621662                                                        __( 'Update your site to use HTTPS' ),
    16631663                                                        /* translators: Hidden accessibility text. */
    class WP_Site_Health { 
    16761676                                $update_url = wp_get_update_https_url();
    16771677                                if ( $update_url !== $default_update_url ) {
    16781678                                        $result['description'] .= sprintf(
    1679                                                 '<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1679                                                '<p><a href="%s" target="_blank">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    16801680                                                esc_url( $update_url ),
    16811681                                                __( 'Talk to your web host about supporting HTTPS for your website.' ),
    16821682                                                /* translators: Hidden accessibility text. */
    class WP_Site_Health { 
    24822482                        );
    24832483                } else {
    24842484                        $result['actions'] .= sprintf(
    2485                                 '<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     2485                                '<p><a href="%s" target="_blank">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    24862486                                __( 'https://developer.wordpress.org/rest-api/frequently-asked-questions/#why-is-authentication-not-working' ),
    24872487                                __( 'Learn how to configure the Authorization header.' ),
    24882488                                /* translators: Hidden accessibility text. */
    class WP_Site_Health { 
    26412641                                __( 'A persistent object cache makes your site&#8217;s database more efficient, resulting in faster load times because WordPress can retrieve your site&#8217;s content and settings much more quickly.' )
    26422642                        ),
    26432643                        'actions'     => sprintf(
    2644                                 '<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     2644                                '<p><a href="%s" target="_blank">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    26452645                                esc_url( $action_url ),
    26462646                                __( 'Learn more about persistent object caching.' ),
    26472647                                /* translators: Hidden accessibility text. */
  • src/wp-admin/includes/dashboard.php

    diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
    index c73ee8ee47..7225784380 100644
    a b function wp_dashboard_php_nag() { 
    18951895        <p class="button-container">
    18961896                <?php
    18971897                printf(
    1898                         '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     1898                        '<a class="button button-primary" href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
    18991899                        esc_url( wp_get_update_php_url() ),
    19001900                        __( 'Learn more about updating PHP' ),
    19011901                        /* translators: Hidden accessibility text. */
  • src/wp-admin/includes/media.php

    diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php
    index 9c75c55d03..e6f886a9b6 100644
    a b function edit_form_image_editor( $post ) { 
    32323232                        /* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
    32333233                        __( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
    32343234                        esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
    3235                         'target="_blank" rel="noopener"',
     3235                        'target="_blank"',
    32363236                        sprintf(
    32373237                                '<span class="screen-reader-text"> %s</span>',
    32383238                                /* translators: Hidden accessibility text. */
  • src/wp-includes/comment.php

    diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
    index b732f83ad4..0fba8f459e 100644
    a b function wp_comments_personal_data_exporter( $email_address, $page = 1 ) { 
    37563756                                case 'comment_link':
    37573757                                        $value = get_comment_link( $comment->comment_ID );
    37583758                                        $value = sprintf(
    3759                                                 '<a href="%s" target="_blank" rel="noopener">%s</a>',
     3759                                                '<a href="%s" target="_blank">%s</a>',
    37603760                                                esc_url( $value ),
    37613761                                                esc_html( $value )
    37623762                                        );
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 56c3d94bf5..99184642b5 100644
    a b function wp_direct_php_update_button() { 
    82378237
    82388238        echo '<p class="button-container">';
    82398239        printf(
    8240                 '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     8240                '<a class="button button-primary" href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
    82418241                esc_url( $direct_update_url ),
    82428242                __( 'Update PHP' ),
    82438243                /* translators: Hidden accessibility text. */
  • src/wp-includes/media-template.php

    diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
    index 6bb31a7bb0..3e27f2401c 100644
    a b function wp_print_media_templates() { 
    160160                /* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
    161161                __( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
    162162                esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
    163                 'target="_blank" rel="noopener"',
     163                'target="_blank"',
    164164                sprintf(
    165165                        '<span class="screen-reader-text"> %s</span>',
    166166                        /* translators: Hidden accessibility text. */