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

WordPress Trac noreply at wordpress.org
Sun Jun 21 14:39:17 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          |   Keywords:
  Focuses:  ui, ui-copy     |
----------------------------+-----------------------------
 This is a continuation #47656

 From @aferica comment
 (https://core.trac.wordpress.org/ticket/47656#comment:47)
 - 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)

 I would like to add
  - Combine strings constructed like __('Error:') . __('any string') into
 one string for better context for translators.

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


More information about the wp-trac mailing list