Make WordPress Core


Ignore:
Timestamp:
09/18/2023 12:28:24 AM (18 months ago)
Author:
joedolson
Message:

Administration: Add support for attributes in wp_admin_notice().

Allow admin notices to be created with additional attributes. Test attributes include hidden, data-*, and role="*" values, which are all in use in various admin notices across core.

This commit adds aria-live and hidden to the KSES global attributes array to support core usages.

Follow up to [56408], [56409], [56410], [56518], [56570], [56571], [56572], [56573], [56576], [56589], [56590], [56597], [56599], [56600], [56601], [56602].

Props costdev, joedolson.
See #57791.

File:
1 edited

Legend:

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

    r56559 r56603  
    26462646        'aria-details'     => true,
    26472647        'aria-expanded'    => true,
     2648        'aria-hidden'      => true,
    26482649        'aria-label'       => true,
    26492650        'aria-labelledby'  => true,
    2650         'aria-hidden'      => true,
     2651        'aria-live'        => true,
    26512652        'class'            => true,
    26522653        'data-*'           => true,
    26532654        'dir'              => true,
     2655        'hidden'           => true,
    26542656        'id'               => true,
    26552657        'lang'             => true,
Note: See TracChangeset for help on using the changeset viewer.