[wp-trac] [WordPress Trac] #57791: Create function to output admin notices
WordPress Trac
noreply at wordpress.org
Fri Oct 13 13:51:37 UTC 2023
#57791: Create function to output admin notices
-------------------------------------------------+-------------------------
Reporter: joedolson | Owner: joedolson
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 6.4
Component: Administration | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note add-to-field-guide | administration
-------------------------------------------------+-------------------------
Comment (by webcommsat):
Hello following up where this is for dev notes. @costdev and @joedolson do
one of you already have a dev note in draft we can add to the
documentation tracker. There has been amazing work on this ticket.
Using much of the wording from @joedolson above, my understanding is:
This change is taking all of the existing WordPress admin notifications
(e.g. "Your post is now published", "You have successfully deleted a
comment", and similar), and using a function to generate the markup for
those functions instead of having each one printed individually to the
screen.
It has no impact at all on what plugin authors can do.
There is an ongoing task to implement new function across core.
This was originally triggered by the number of separate instances of admin
notices generated by core.
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57791#comment:102>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list