Make WordPress Core


Ignore:
Timestamp:
11/15/2021 07:58:04 PM (3 years ago)
Author:
joedolson
Message:

Menus: Add audible notice on menu item add or remove.

Call wp.a11y.speak() to add audible notification when a menu item is added or removed from a menu.

Props joedolson, costdev, hellofromTonya.
Fixes #53840.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/nav-menus.php

    r51688 r52166  
    500500    /* translators: %s: Item name. */
    501501    'itemsDeleted'            => __( 'Deleted menu item: %s.' ),
     502    'itemAdded'               => __( 'Menu item added' ),
     503    'itemRemoved'             => __( 'Menu item removed' ),
     504    'movedUp'                 => __( 'Menu item moved up' ),
     505    'movedDown'               => __( 'Menu item moved down' ),
     506    'movedTop'                => __( 'Menu item moved to the top' ),
     507    'movedLeft'               => __( 'Menu item moved out of submenu' ),
     508    'movedRight'              => __( 'Menu item is now a sub-item' ),
    502509);
    503510wp_localize_script( 'nav-menu', 'menus', $nav_menus_l10n );
Note: See TracChangeset for help on using the changeset viewer.