[wp-trac] [WordPress Trac] #54488: wp_filter_nohtml_kses does not remove HTML comments
WordPress Trac
noreply at wordpress.org
Fri Feb 24 11:09:23 UTC 2023
#54488: wp_filter_nohtml_kses does not remove HTML comments
--------------------------------------------------+-----------------------
Reporter: leewillis77 | Owner: audrasjb
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.2
Component: Formatting | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd-opinion | Focuses: docs
--------------------------------------------------+-----------------------
Comment (by leewillis77):
I can understand how the proposed name ({{{$allowed_comments}}}) may be
confusing in the context of other similarly named. Would
$preserve_comments be more appropriate?
@azaozz is {{{wp_strip_all_tags()}}} functionally equivalent to a (fixed)
{{{wp_filter_nohtml_kses()}}} as modified here? I'm guessing not, but if
not, what are the differences?
Or, if the two are functionally equivalent then I'd suggest we need a new
ticket to deprecate one of them in favour of the preferred option?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54488#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list