[wp-trac] [WordPress Trac] #57791: Create function to output admin notices
WordPress Trac
noreply at wordpress.org
Thu Feb 23 16:05:49 UTC 2023
#57791: Create function to output admin notices
--------------------------------------+------------------------------
Reporter: joedolson | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: administration
--------------------------------------+------------------------------
Comment (by joedolson):
#40173 is interesting; it shows that we already have code that can produce
these structures with, but it's only available as part of a larger API for
settings. But WordPress uses these notices more broadly. I don't think
that closing that previous ticket as wontfix was the right move; instead,
we should still create this function, and use it as the rendering portion
in `settings_errors()`.
This avoids the code duplication, but still allows us to have a function
that renders the standardized structure of an admin notice without being
tied to the settings API.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57791#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list