[wp-trac] [WordPress Trac] #62619: Remove `wp_kses_post()` filtering from admin notices
WordPress Trac
noreply at wordpress.org
Fri Nov 29 19:33:47 UTC 2024
#62619: Remove `wp_kses_post()` filtering from admin notices
----------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.8
Component: Administration | Version: 6.4
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+---------------------
Comment (by azaozz):
Can see that several bugs resulting from the filtering of the admin
notices HTML were reported on the original ticket: #57791. Unfortunately
the fixes for them were added as workarounds/exceptions instead of
removing the actual cause. There are more reports of broken functionality,
see #62606.
Unfortunately I cannot see why and how it was decided to filter the admin
notices with `wp_kses_post()`, and what is being fixed by that. This
doesn't seem to have been discussed there?
In any case I think that any type of filtering of text or HTML that is
hard-coded and provided directly by WP core or plugins is not a goop idea.
It doesn't serve any purpose, slows things down, limits use cases, and in
this case breaks backwards compatibility.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62619#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list