Changeset 52895
- Timestamp:
- 03/10/2022 11:25:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r52693 r52895 2202 2202 } 2203 2203 2204 // Global Styles filtering: Global Styles filters should be executed before normal post_kses HTML filters. 2205 add_filter( 'content_save_pre', 'wp_filter_global_styles_post', 9 ); 2206 add_filter( 'content_filtered_save_pre', 'wp_filter_global_styles_post', 9 ); 2207 2204 2208 // Post filtering. 2205 2209 add_filter( 'content_save_pre', 'wp_filter_post_kses' ); 2206 add_filter( 'content_save_pre', 'wp_filter_global_styles_post' );2207 2210 add_filter( 'excerpt_save_pre', 'wp_filter_post_kses' ); 2208 2211 add_filter( 'content_filtered_save_pre', 'wp_filter_post_kses' ); 2209 add_filter( 'content_filtered_save_pre', 'wp_filter_global_styles_post' );2210 2212 } 2211 2213 … … 2230 2232 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2231 2233 2234 // Global Styles filtering. 2235 remove_filter( 'content_save_pre', 'wp_filter_global_styles_post', 9 ); 2236 remove_filter( 'content_filtered_save_pre', 'wp_filter_global_styles_post', 9 ); 2237 2232 2238 // Post filtering. 2233 2239 remove_filter( 'content_save_pre', 'wp_filter_post_kses' ); 2234 remove_filter( 'content_save_pre', 'wp_filter_global_styles_post' );2235 2240 remove_filter( 'excerpt_save_pre', 'wp_filter_post_kses' ); 2236 2241 remove_filter( 'content_filtered_save_pre', 'wp_filter_post_kses' ); 2237 remove_filter( 'content_filtered_save_pre', 'wp_filter_global_styles_post' );2238 2242 } 2239 2243
Note: See TracChangeset
for help on using the changeset viewer.