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. Built from https://develop.svn.wordpress.org/trunk@53025 git-svn-id: http://core.svn.wordpress.org/trunk@52614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fff6998023
commit
2f0cb02d07
|
@ -1154,7 +1154,6 @@ function wp_default_scripts( $scripts ) {
|
|||
$scripts->add( 'customize-models', '/wp-includes/js/customize-models.js', array( 'underscore', 'backbone' ), false, 1 );
|
||||
$scripts->add( 'customize-views', '/wp-includes/js/customize-views.js', array( 'jquery', 'underscore', 'imgareaselect', 'customize-models', 'media-editor', 'media-views' ), false, 1 );
|
||||
$scripts->add( 'customize-controls', "/wp-admin/js/customize-controls$suffix.js", array( 'customize-base', 'wp-a11y', 'wp-util', 'jquery-ui-core' ), false, 1 );
|
||||
$switch_to_site_editor_label = __( 'Use Site Editor' );
|
||||
did_action( 'init' ) && $scripts->localize(
|
||||
'customize-controls',
|
||||
'_wpCustomizeControlsL10n',
|
||||
|
@ -1223,15 +1222,13 @@ function wp_default_scripts( $scripts ) {
|
|||
'invalidDate' => __( 'Invalid date.' ),
|
||||
'invalidValue' => __( 'Invalid value.' ),
|
||||
'blockThemeNotification' => sprintf(
|
||||
/* translators: 1. %s: URL to the localized version of https://wordpress.org/support/article/site-editor/, 2: HTML Button. */
|
||||
__( 'Hurray! Your theme supports Full Site Editing with blocks. <a href="%1$s" target="_blank">Tell me more</a>. %2$s' ),
|
||||
/* translators: 1: Link to Site Editor documentation on HelpHub, 2: HTML button. */
|
||||
__( 'Hurray! Your theme supports Full Site Editing with blocks. <a href="%1$s">Tell me more</a>. %2$s' ),
|
||||
__( 'https://wordpress.org/support/article/site-editor/' ),
|
||||
sprintf(
|
||||
/* translators: 1: URL to the Site Editor admin screen, 2: Button label, 3: Button text. */
|
||||
'<button type="button" data-action="%1$s" class="button switch-to-editor" aria-label="%2$s">%3$s</button>',
|
||||
'<button type="button" data-action="%1$s" class="button switch-to-editor">%2$s</button>',
|
||||
esc_url( admin_url( 'site-editor.php' ) ),
|
||||
$switch_to_site_editor_label,
|
||||
$switch_to_site_editor_label
|
||||
__( 'Use Site Editor' )
|
||||
)
|
||||
),
|
||||
)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0-alpha-53024';
|
||||
$wp_version = '6.0-alpha-53025';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue