[wp-trac] [WordPress Trac] #50442: Add prefixes to all admin notices (Warning, Error, Success, Info)

WordPress Trac noreply at wordpress.org
Sun Jun 21 16:29:35 UTC 2020


#50442: Add prefixes to all admin notices (Warning, Error, Success, Info)
----------------------------+------------------------------
 Reporter:  kebbet          |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui, ui-copy
----------------------------+------------------------------

Comment (by apedog):

 I understand the reasoning behind having mandatory Error and Warning
 prefixes. I don't hold an opinion either way - but I understand why it can
 be considered beneficial. It might not be pretty. It might be redundant
 for some messages (eg. strings that already contain the word 'error' in
 them) but they're a good marker/label for those notices. Good for
 accessibility. They grab attention regardless of coloring scheme. And
 they're unambiguous.

 However mandatory 'Info' and 'Success' prefixes would just be annoying.

 Adding the word 'Info' to what is already an information string does not
 add any new information. It's already information. It's not only redundant
 it's stupid.

 The only difference between Info and Success notices is that Success
 notices accompany an action while Info notices are passive notices. There
 is no real accessibility need (none that I know or can think of) to
 disambiguate them from Info notices. Not in the way that Error and Warning
 need to stand out.

 -1 for adding mandatory 'Info' and 'Success' prefixes.

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


More information about the wp-trac mailing list