Changeset 46915 for branches/5.0/src/wp-includes/default-filters.php
- Timestamp:
- 12/12/2019 06:51:11 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/default-filters.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
- Property svn:mergeinfo changed
/trunk merged: 46893-46896
- Property svn:mergeinfo changed
-
branches/5.0/src/wp-includes/default-filters.php
r43930 r46915 225 225 226 226 // Misc filters 227 add_filter( 'option_ping_sites', 'privacy_ping_filter' ); 228 add_filter( 'option_blog_charset', '_wp_specialchars' ); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop 229 add_filter( 'option_blog_charset', '_canonical_charset' ); 230 add_filter( 'option_home', '_config_wp_home' ); 231 add_filter( 'option_siteurl', '_config_wp_siteurl' ); 232 add_filter( 'tiny_mce_before_init', '_mce_set_direction' ); 233 add_filter( 'teeny_mce_before_init', '_mce_set_direction' ); 234 add_filter( 'pre_kses', 'wp_pre_kses_less_than' ); 235 add_filter( 'sanitize_title', 'sanitize_title_with_dashes', 10, 3 ); 236 add_action( 'check_comment_flood', 'check_comment_flood_db', 10, 4 ); 237 add_filter( 'comment_flood_filter', 'wp_throttle_comment_flood', 10, 3 ); 238 add_filter( 'pre_comment_content', 'wp_rel_nofollow', 15 ); 239 add_filter( 'comment_email', 'antispambot' ); 240 add_filter( 'option_tag_base', '_wp_filter_taxonomy_base' ); 241 add_filter( 'option_category_base', '_wp_filter_taxonomy_base' ); 242 add_filter( 'the_posts', '_close_comments_for_old_posts', 10, 2); 243 add_filter( 'comments_open', '_close_comments_for_old_post', 10, 2 ); 244 add_filter( 'pings_open', '_close_comments_for_old_post', 10, 2 ); 245 add_filter( 'editable_slug', 'urldecode' ); 246 add_filter( 'editable_slug', 'esc_textarea' ); 247 add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' ); 248 add_filter( 'pingback_ping_source_uri', 'pingback_ping_source_uri' ); 249 add_filter( 'xmlrpc_pingback_error', 'xmlrpc_pingback_error' ); 250 add_filter( 'title_save_pre', 'trim' ); 227 add_filter( 'option_ping_sites', 'privacy_ping_filter' ); 228 add_filter( 'option_blog_charset', '_wp_specialchars' ); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop 229 add_filter( 'option_blog_charset', '_canonical_charset' ); 230 add_filter( 'option_home', '_config_wp_home' ); 231 add_filter( 'option_siteurl', '_config_wp_siteurl' ); 232 add_filter( 'tiny_mce_before_init', '_mce_set_direction' ); 233 add_filter( 'teeny_mce_before_init', '_mce_set_direction' ); 234 add_filter( 'pre_kses', 'wp_pre_kses_less_than' ); 235 add_filter( 'pre_kses', 'wp_pre_kses_block_attributes', 10, 3 ); 236 add_filter( 'sanitize_title', 'sanitize_title_with_dashes', 10, 3 ); 237 add_action( 'check_comment_flood', 'check_comment_flood_db', 10, 4 ); 238 add_filter( 'comment_flood_filter', 'wp_throttle_comment_flood', 10, 3 ); 239 add_filter( 'pre_comment_content', 'wp_rel_nofollow', 15 ); 240 add_filter( 'comment_email', 'antispambot' ); 241 add_filter( 'option_tag_base', '_wp_filter_taxonomy_base' ); 242 add_filter( 'option_category_base', '_wp_filter_taxonomy_base' ); 243 add_filter( 'the_posts', '_close_comments_for_old_posts', 10, 2 ); 244 add_filter( 'comments_open', '_close_comments_for_old_post', 10, 2 ); 245 add_filter( 'pings_open', '_close_comments_for_old_post', 10, 2 ); 246 add_filter( 'editable_slug', 'urldecode' ); 247 add_filter( 'editable_slug', 'esc_textarea' ); 248 add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' ); 249 add_filter( 'pingback_ping_source_uri', 'pingback_ping_source_uri' ); 250 add_filter( 'xmlrpc_pingback_error', 'xmlrpc_pingback_error' ); 251 add_filter( 'title_save_pre', 'trim' ); 251 252 252 253 add_action( 'transition_comment_status', '_clear_modified_cache_on_transition_comment_status', 10, 2 );
Note: See TracChangeset
for help on using the changeset viewer.