Changeset 52896 for branches/5.9
- Timestamp:
- 03/10/2022 11:36:14 PM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/src/wp-includes/kses.php
r52326 r52896 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.