Make WordPress Core


Ignore:
Timestamp:
08/25/2024 10:35:31 PM (2 months ago)
Author:
peterwilsoncc
Message:

Comments: Announce reply notices to screen reader users.

Improve experience for screen reader users by calling wp.a11y.speak() with the results of comment reply submissions within the WordPress dashboard.

Props joedolson, khokansardar.
Fixes #61480.

File:
1 edited

Legend:

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

    r58902 r58931  
    13981398        $scripts->set_translations( 'admin-tags' );
    13991399
    1400         $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array( 'wp-lists', 'quicktags', 'jquery-query' ), false, 1 );
     1400        $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array( 'wp-lists', 'quicktags', 'jquery-query', 'wp-a11y' ), false, 1 );
    14011401        $scripts->set_translations( 'admin-comments' );
    14021402        did_action( 'init' ) && $scripts->localize(
Note: See TracChangeset for help on using the changeset viewer.