Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#53062 closed defect (bug) (invalid)

iFrame in Taxonomies

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

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
5 years ago

  • Component GeneralTaxonomy
  • Summary iFrame in TaxonomieniFrame in Taxonomies
  • Version5.7.1

#2 @zodiac1978
5 years ago

  • Resolutioninvalid
  • Status newclosed

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
5 years ago

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