Make WordPress Core

Changeset 58931


Ignore:
Timestamp:
08/25/2024 10:35:31 PM (7 weeks 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.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/edit-comments.js

    r54334 r58931  
    11891189            $errorNotice.removeClass( 'hidden' );
    11901190            $error.html( er );
     1191            wp.a11y.speak( er );
    11911192        }
    11921193    },
  • 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.