Make WordPress Core


Ignore:
Timestamp:
03/29/2022 07:55:32 PM (3 years ago)
Author:
audrasjb
Message:

Customizer: Accessibility fixes following [53024].

This changeset fixes a few issues spotted after [53024].

  • Remove target blank on HelpHub link
  • Remove duplicate information in aria-label
  • Small i18n fixes

Follow-up to [53024].

Props joedolson, audrasjb, pbiron.
Fixes #54939.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r53024 r53025  
    11551155    $scripts->add( 'customize-views', '/wp-includes/js/customize-views.js', array( 'jquery', 'underscore', 'imgareaselect', 'customize-models', 'media-editor', 'media-views' ), false, 1 );
    11561156    $scripts->add( 'customize-controls', "/wp-admin/js/customize-controls$suffix.js", array( 'customize-base', 'wp-a11y', 'wp-util', 'jquery-ui-core' ), false, 1 );
    1157     $switch_to_site_editor_label = __( 'Use Site Editor' );
    11581157    did_action( 'init' ) && $scripts->localize(
    11591158        'customize-controls',
     
    12241223            'invalidValue'            => __( 'Invalid value.' ),
    12251224            'blockThemeNotification'  => sprintf(
    1226                 /* translators: 1. %s: URL to the localized version of https://wordpress.org/support/article/site-editor/, 2: HTML Button. */
    1227                 __( 'Hurray! Your theme supports Full Site Editing with blocks. <a href="%1$s" target="_blank">Tell me more</a>. %2$s' ),
     1225                /* translators: 1: Link to Site Editor documentation on HelpHub, 2: HTML button. */
     1226                __( 'Hurray! Your theme supports Full Site Editing with blocks. <a href="%1$s">Tell me more</a>. %2$s' ),
    12281227                __( 'https://wordpress.org/support/article/site-editor/' ),
    12291228                sprintf(
    1230                     /* translators: 1: URL to the Site Editor admin screen, 2: Button label, 3: Button text. */
    1231                     '<button type="button" data-action="%1$s" class="button switch-to-editor" aria-label="%2$s">%3$s</button>',
     1229                    '<button type="button" data-action="%1$s" class="button switch-to-editor">%2$s</button>',
    12321230                    esc_url( admin_url( 'site-editor.php' ) ),
    1233                     $switch_to_site_editor_label,
    1234                     $switch_to_site_editor_label
     1231                    __( 'Use Site Editor' )
    12351232                )
    12361233            ),
Note: See TracChangeset for help on using the changeset viewer.