Make WordPress Core


Ignore:
Timestamp:
01/14/2016 10:57:09 PM (9 years ago)
Author:
afercia
Message:

Accessibility: Improve focus handling and audible feedback on the Posts Quick-Bulk Edit.

Avoids a focus loss when saving or closing the form moving focus back to a proper place.
Uses wp.a11y.speak() to dispatch successful edits and error messages to screen readers.

Fixes #34756.

File:
1 edited

Legend:

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

    r36295 r36303  
    561561        $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'wp-backbone', 'wp-a11y' ), false, 1 );
    562562
    563         $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), false, 1 );
     563        $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest', 'wp-a11y' ), false, 1 );
    564564        did_action( 'init' ) && $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
    565             'error' => __('Error while saving the changes.'),
    566             'ntdeltitle' => __('Remove From Bulk Edit'),
    567             'notitle' => __('(no title)'),
    568             'comma' => trim( _x( ',', 'tag delimiter' ) ),
     565            'error'      => __( 'Error while saving the changes.' ),
     566            'ntdeltitle' => __( 'Remove From Bulk Edit' ),
     567            'notitle'    => __( '(no title)' ),
     568            'comma'      => trim( _x( ',', 'tag delimiter' ) ),
     569            'saved'      => __( 'Changes saved.' ),
    569570        ) );
    570571
Note: See TracChangeset for help on using the changeset viewer.