[wp-trac] [WordPress Trac] #57791: Create function to output admin notices
WordPress Trac
noreply at wordpress.org
Sun Jan 14 19:09:34 UTC 2024
#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 add-to- | Focuses:
field-guide has-dev-note | administration
-------------------------------------------------+-------------------------
Comment (by joedolson):
It is invalid HTML, but that function doesn't have any mechanism for
testing whether an attribute is valid on a `div`, so the expected result
is that it would be added.
This is testing the difference between how `wp_get_admin_notice()` handles
this and how `wp_admin_notice()` handles it. `wp_admin_notice()` is run
through `wp_kses_post()`, so invalid attributes are stripped then, but
that's not true for `wp_get_admin_notice()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57791#comment:108>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list