wordpress-develop icon indicating copy to clipboard operation
wordpress-develop copied to clipboard

Accessibility: Add aria-live attribute support to `settings_errors()`

Open himanshupathak95 opened this issue 9 months ago • 2 comments

Trac ticket: https://core.trac.wordpress.org/ticket/63199

This PR enhances the accessibility of admin notices by adding support for the aria-live attribute in the settings_errors() function. This also adds the ability to control the aria-live attribute, which helps direct screen reader users' attention to these notices with appropriate urgency levels.

  • Added an optional 'aria_live' parameter to add_settings_error()
  • Updated settings_errors() to output the aria-live attribute when provided

himanshupathak95 avatar Apr 02 '25 18:04 himanshupathak95