Make WordPress Core

Opened 2 years ago

Closed 20 months ago

Last modified 19 months ago

#53062 closed defect (bug) (invalid)

iFrame in Taxonomies

Reported by: loewenherz's profile Loewenherz Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.7.1
Component: Taxonomy Keywords:
Focuses: Cc:

Description

After the update to 5.7.1, iFrames in taxonomies (tags) are deleted on save. Code in functions.php like remove_filter( 'term_description', 'wp_kses_data' ); doesn't work not longer.

Change History (3)

#1 @SergeyBiryukov
2 years ago

  • Component changed from General to Taxonomy
  • Summary changed from iFrame in Taxonomien to iFrame in Taxonomies
  • Version set to 5.7.1

#2 @zodiac1978
20 months ago

  • Resolution set to invalid
  • Status changed from new to closed

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).

#3 @desrosj
19 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.