[wp-trac] [WordPress Trac] #47656: Remove 'Error:' prefixes from error notices as they're redundant

WordPress Trac noreply at wordpress.org
Sun Jun 21 14:07:52 UTC 2020


#47656: Remove 'Error:' prefixes from error notices as they're redundant
-------------------------+-------------------------------------------------
 Reporter:  garrett-     |       Owner:  audrasjb
  eclipse                |
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.5
Component:  I18N         |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  ui, accessibility, administration,
                         |  ui-copy
-------------------------+-------------------------------------------------

Comment (by afercia):

 To summarize further actions that should go in a new ticket:

 - Make sure all the Error and Warning notices use respectively an "Error:"
 and "Warning:" text prefix
 - Further discuss whether also the "Success" and "Info" notices should use
 a similar text prefix
 - Update documentation related to admin notices, for example:
 https://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices and
 https://developer.wordpress.org/reference/hooks/admin_notices/
 - Create a new issue on the Gutenberg GitHub to add text prefixes for the
 editor notices: right now, none of them uses a prefix (see screenshot
 below)

 **Accessibility improvements**
 At the very least (see comment:34):
 - PHP notices: the notice text, or maybe better some text that informs
 users there's a notice, should be prepended to the document title as
 that's the first thing screen readers announce after a page load
 - PHP notices: explore mechanisms to allow users to navigate to the
 notices, whether they're printed out close to the main H1 heading or in
 the middle of the page
 - JavaScript notices: notices injected in the DOM should have an aria role
 alert or status so that they're automatically announced by screen readers
 - In any case, an admin notice should be visually prominent and appear
 within the current viewport for low vision users

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47656#comment:47>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list