[wp-trac] [WordPress Trac] #50402: Admin notices: error messages should not be all bold

WordPress Trac noreply at wordpress.org
Thu Jan 11 17:16:44 UTC 2024


#50402: Admin notices: error messages should not be all bold
----------------------------+------------------------
 Reporter:  afercia         |       Owner:  joedolson
     Type:  defect (bug)    |      Status:  accepted
 Priority:  normal          |   Milestone:  6.5
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  ui
----------------------------+------------------------

Comment (by joedolson):

 Thanks for your patches @robinmartijn and @rajinsharwar

 As @mukesh27 says, we'll need to integrate the new classes into the
 function calls in most cases. These will also require visual inspection
 and screenshots to verify that any changes are acceptable.

 In the `wp_admin_notice()` function, the classes 'notice notice-error' are
 automatically added by setting the type to 'error', and should be omitted
 from the paragraph wrapper. If there's a different class on the paragraph
 inside the error, those are different from the notice classes and should
 be retained - in most cases, they're likely needed hooks for some JS event
 or response.

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


More information about the wp-trac mailing list