[wp-trac] [WordPress Trac] #53062: iFrame in Taxonomies
WordPress Trac
noreply at wordpress.org
Sun Oct 17 17:36:35 UTC 2021
#53062: iFrame in Taxonomies
--------------------------+------------------------------
Reporter: Loewenherz | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 5.7.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by zodiac1978):
* status: new => closed
* resolution: => invalid
Comment:
There is no bug here. You need to remove both filter:
{{{
remove_filter( 'term_description', 'wp_kses_data' );
remove_filter( 'pre_term_description', 'wp_filter_kses' );
}}}
Or with Yoast activated (then the post context is used):
{{{
remove_filter( 'term_description', 'wp_kses_post' );
remove_filter( 'pre_term_description', 'wp_filter_post_kses' );
}}}
Although it would be even better to use the `wp_kses_allowed_html` filter
to just add `iframe` to the list of allowed HTML tags with the used
attributes for YouTube (if that is your use case for example).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53062#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list