WordPress.org

Make WordPress Core

Ticket #47303: 47303.3.diff

File 47303.3.diff, 8.4 KB (added by isabel_brison, 18 months ago)
  • src/wp-admin/css/common.css

    diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
    index 5c97f14453..de69f5fe48 100644
    a b  
    138138        height: auto; /* Fixes a Safari+VoiceOver bug, see ticket #42006 */
    139139}
    140140
     141.screen-reader-text + .dashicons-external {
     142        margin-top: -2px;
     143        margin-left: 4px;
     144}
     145
    141146.screen-reader-shortcut {
    142147        position: absolute;
    143148        top: -1000em;
  • 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 eb3d89d3f8..9c52680bd6 100644
    a b class WP_Site_Health { 
    723723                                )
    724724                        ),
    725725                        'actions'     => sprintf(
    726                                 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     726                                '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    727727                                esc_url( wp_get_update_php_url() ),
    728728                                __( 'Learn more about updating PHP' ),
    729729                                /* translators: Accessibility text. */
    class WP_Site_Health { 
    838838                                        esc_url( __( 'https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions' ) ),
    839839                                        'target="_blank" rel="noopener noreferrer"',
    840840                                        sprintf(
    841                                                 ' <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
     841                                                '<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
    842842                                                /* translators: Accessibility text. */
    843843                                                __( '(opens in a new tab)' )
    844844                                        )
    class WP_Site_Health { 
    11071107                                __( 'The SQL server is a required piece of software for the database WordPress uses to store all your site&#8217;s content and settings.' )
    11081108                        ),
    11091109                        'actions'     => sprintf(
    1110                                 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1110                                '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    11111111                                /* translators: Localized version of WordPress requirements if one exists. */
    11121112                                esc_url( __( 'https://wordpress.org/about/requirements/' ) ),
    11131113                                __( 'Learn more about what WordPress requires to run.' ),
    class WP_Site_Health { 
    13441344                        );
    13451345
    13461346                        $result['actions'] = sprintf(
    1347                                 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1347                                '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    13481348                                /* translators: Localized Support reference. */
    13491349                                esc_url( __( 'https://wordpress.org/support' ) ),
    13501350                                __( 'Get help resolving this issue.' ),
    class WP_Site_Health { 
    13821382                                __( '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.' )
    13831383                        ),
    13841384                        'actions'     => sprintf(
    1385                                 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1385                                '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    13861386                                /* translators: Documentation explaining debugging in WordPress. */
    13871387                                esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ),
    13881388                                __( 'Learn more about debugging in WordPress.' ),
    class WP_Site_Health { 
    14511451                                __( '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.' )
    14521452                        ),
    14531453                        'actions'     => sprintf(
    1454                                 '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
     1454                                '<p><a href="%s" target="_blank" rel="noopener noreferrer">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
    14551455                                /* translators: Documentation explaining HTTPS and why it should be used. */
    14561456                                esc_url( __( 'https://wordpress.org/support/article/why-should-i-use-https/' ) ),
    14571457                                __( 'Learn more about why you should use HTTPS' ),
  • src/wp-admin/includes/dashboard.php

    diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
    index 11fb18268c..0695712263 100644
    a b function wp_dashboard_events_news() { 
    12181218        <p class="community-events-footer">
    12191219                <?php
    12201220                        printf(
    1221                                 '<a 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>',
     1221                                '<a 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>',
    12221222                                'https://make.wordpress.org/community/meetups-landing-page',
    12231223                                __( 'Meetups' ),
    12241224                                /* translators: Accessibility text. */
    function wp_dashboard_events_news() { 
    12301230
    12311231                <?php
    12321232                        printf(
    1233                                 '<a 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>',
     1233                                '<a 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>',
    12341234                                'https://central.wordcamp.org/schedule/',
    12351235                                __( 'WordCamps' ),
    12361236                                /* translators: Accessibility text. */
    function wp_dashboard_events_news() { 
    12421242
    12431243                <?php
    12441244                        printf(
    1245                                 '<a 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>',
     1245                                '<a 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>',
    12461246                                /* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
    12471247                                esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ),
    12481248                                __( 'News' ),
    function wp_dashboard_php_nag() { 
    17411741        <p class="button-container">
    17421742                <?php
    17431743                printf(
    1744                         '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     1744                        '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
    17451745                        esc_url( wp_get_update_php_url() ),
    17461746                        __( 'Learn more about updating PHP' ),
    17471747                        /* translators: Accessibility text. */
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index bc9f276b89..e9849e63dc 100644
    a b function wp_direct_php_update_button() { 
    74477447
    74487448        echo '<p class="button-container">';
    74497449        printf(
    7450                 '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
     7450                '<a class="button button-primary" href="%1$s" target="_blank" rel="noopener noreferrer">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
    74517451                esc_url( $direct_update_url ),
    74527452                __( 'Update PHP' ),
    74537453                /* translators: Accessibility text. */