[wp-trac] [WordPress Trac] #57791: Create function to output admin notices

WordPress Trac noreply at wordpress.org
Wed Feb 22 23:24:43 UTC 2023


#57791: Create function to output admin notices
----------------------------+-----------------------------
 Reporter:  joedolson       |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 There are at least 100 separate instances of admin notices generated by
 core. In a quick search for `id="message"`, there are 92 hits, but I know
 that there are also cases that don't have that ID.

 The  markup for all of these should be generated by a function; this would
 make future updates easier, as well as making the markup easier to
 maintain.

 Something like `admin_notice( $message, $args );`, where args is an array
 of class & ID attributes.

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


More information about the wp-trac mailing list