mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 12:14:25 +00:00
Accessibility: improvements for the taxonomies Quick Edit form.
Changes the "Cancel" and "Update" controls in buttons for better semantics and accessibility. On cancel and successful saving, moves focus back to the term title to avoid a focus loss. Dispatches error and success messages to `wp.a11y.speak` to give assistive technologies users an audible feedback. Patch prepared at #wpcdit, first Italian WordPress Contributor Day. Props garusky, chiara_09. Fixes #34613. git-svn-id: https://develop.svn.wordpress.org/trunk@35605 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -562,9 +562,10 @@ function wp_default_scripts( &$scripts ) {
|
||||
'comma' => trim( _x( ',', 'tag delimiter' ) ),
|
||||
) );
|
||||
|
||||
$scripts->add( 'inline-edit-tax', "/wp-admin/js/inline-edit-tax$suffix.js", array( 'jquery' ), false, 1 );
|
||||
$scripts->add( 'inline-edit-tax', "/wp-admin/js/inline-edit-tax$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
|
||||
'error' => __('Error while saving the changes.')
|
||||
'error' => __( 'Error while saving the changes.' ),
|
||||
'saved' => __( 'Changes saved.' ),
|
||||
) );
|
||||
|
||||
$scripts->add( 'plugin-install', "/wp-admin/js/plugin-install$suffix.js", array( 'jquery', 'thickbox' ), false, 1 );
|
||||
|
||||
Reference in New Issue
Block a user