From 810ace4a5e8eba96705bf0621a24fcde3f13c185 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 21 Jul 2015 11:36:15 +0000 Subject: [PATCH] Customizer: Avoid duplicate IDs and remove role presentation from menu items reorder button. Follow-up to [33074]. props afercia. fixes #32725. git-svn-id: https://develop.svn.wordpress.org/trunk@33339 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-nav-menus.js | 4 ++-- src/wp-includes/class-wp-customize-control.php | 8 ++++---- src/wp-includes/class-wp-customize-nav-menus.php | 2 ++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/js/customize-nav-menus.js b/src/wp-admin/js/customize-nav-menus.js index 0f35079678..8f51e7b132 100644 --- a/src/wp-admin/js/customize-nav-menus.js +++ b/src/wp-admin/js/customize-nav-menus.js @@ -2013,11 +2013,11 @@ this.$sectionContent.sortable( this.isReordering ? 'disable' : 'enable' ); if ( this.isReordering ) { addNewItemBtn.attr( 'tabindex', '-1' ); - reorderBtn.find( '.reorder-done' ).focus(); + reorderBtn.attr( 'aria-label', api.Menus.data.l10n.reorderLabelOff ); wp.a11y.speak( api.Menus.data.l10n.reorderModeOn ); } else { addNewItemBtn.removeAttr( 'tabindex' ); - reorderBtn.find( '.reorder' ).focus(); + reorderBtn.attr( 'aria-label', api.Menus.data.l10n.reorderLabelOn ); wp.a11y.speak( api.Menus.data.l10n.reorderModeOff ); } diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php index cda1bda639..d343b8a6ae 100644 --- a/src/wp-includes/class-wp-customize-control.php +++ b/src/wp-includes/class-wp-customize-control.php @@ -1574,11 +1574,11 @@ class WP_Customize_Nav_Menu_Control extends WP_Customize_Control { - -

+