WordPress.org

Make WordPress Core

Ticket #47303: 47303.2.diff

File 47303.2.diff, 8.4 KB (added by isabel_brison, 7 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 017631444c..be49fbad20 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 12e127353b..97baf5911a 100644
    a b class WP_Site_Health { 
    652652                                __( '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’s performance.' )
    653653                        ),
    654654                        'actions'     => sprintf(
    655                                 '<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>',
     655                                '<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>',
    656656                                esc_url( wp_get_update_php_url() ),
    657657                                __( 'Learn more about updating PHP' ),
    658658                                /* translators: accessibility text */
    class WP_Site_Health { 
    746746                                        esc_url( __( 'https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions' ) ),
    747747                                        'target="_blank" rel="noopener noreferrer"',
    748748                                        sprintf(
    749                                                 ' <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
     749                                                '<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
    750750                                                /* translators: accessibility text */
    751751                                                __( '(opens in a new tab)' )
    752752                                        )
    class WP_Site_Health { 
    943943                                __( 'The SQL server is a required piece of software for the database WordPress uses to store all your site&#8217;s content and settings.' )
    944944                        ),
    945945                        'actions'     => sprintf(
    946                                 '<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>',
     946                                '<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>',
    947947                                /* translators: Localized version of WordPress requirements if one exists. */
    948948                                esc_url( __( 'https://wordpress.org/about/requirements/' ) ),
    949949                                __( 'Read more about what WordPress requires to run.' ),
    class WP_Site_Health { 
    11761176                        );
    11771177
    11781178                        $result['actions'] = sprintf(
    1179                                 '<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>',
     1179                                '<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>',
    11801180                                /* translators: Localized Support reference. */
    11811181                                esc_url( __( 'https://wordpress.org/support' ) ),
    11821182                                __( 'Get help resolving this issue.' ),
    class WP_Site_Health { 
    12141214                                __( '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.' )
    12151215                        ),
    12161216                        'actions'     => sprintf(
    1217                                 '<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>',
     1217                                '<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>',
    12181218                                /* translators: Documentation explaining debugging in WordPress. */
    12191219                                esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ),
    12201220                                __( 'Read about debugging in WordPress.' ),
    class WP_Site_Health { 
    12831283                                __( 'An HTTPS connection is needed for many features on the web today, it also gains the trust of your visitors by helping to protecting their online privacy.' )
    12841284                        ),
    12851285                        'actions'     => sprintf(
    1286                                 '<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>',
     1286                                '<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>',
    12871287                                /* translators: Documentation explaining HTTPS and why it should be used. */
    12881288                                esc_url( __( 'https://wordpress.org/support/article/why-should-i-use-https/' ) ),
    12891289                                __( 'Read 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 a622f0e7cf..1022f0446d 100644
    a b function wp_dashboard_events_news() { 
    11271127        <p class="community-events-footer">
    11281128                <?php
    11291129                        printf(
    1130                                 '<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>',
     1130                                '<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>',
    11311131                                'https://make.wordpress.org/community/meetups-landing-page',
    11321132                                __( 'Meetups' ),
    11331133                                /* translators: accessibility text */
    function wp_dashboard_events_news() { 
    11391139
    11401140                <?php
    11411141                        printf(
    1142                                 '<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>',
     1142                                '<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>',
    11431143                                'https://central.wordcamp.org/schedule/',
    11441144                                __( 'WordCamps' ),
    11451145                                /* translators: accessibility text */
    function wp_dashboard_events_news() { 
    11511151
    11521152                <?php
    11531153                        printf(
    1154                                 '<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>',
     1154                                '<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>',
    11551155                                /* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
    11561156                                esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ),
    11571157                                __( 'News' ),
    function wp_dashboard_php_nag() { 
    16371637        <p class="button-container">
    16381638                <?php
    16391639                printf(
    1640                         '<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>',
     1640                        '<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>',
    16411641                        esc_url( wp_get_update_php_url() ),
    16421642                        __( 'Learn more about updating PHP' ),
    16431643                        /* translators: accessibility text */
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 5dfbf58697..416e73615b 100644
    a b function wp_direct_php_update_button() { 
    70247024
    70257025        echo '<p class="button-container">';
    70267026        printf(
    7027                 '<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>',
     7027                '<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>',
    70287028                esc_url( $direct_update_url ),
    70297029                __( 'Update PHP' ),
    70307030                /* translators: accessibility text */