Make WordPress Core


Ignore:
Timestamp:
03/01/2013 04:28:40 PM (12 years ago)
Author:
ryan
Message:

Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/kses.php

    r23416 r23554  
    13271327function kses_init_filters() {
    13281328    // Normal filtering
    1329     add_filter('title_save_pre', 'wp_kses_data');
     1329    add_filter('title_save_pre', 'wp_filter_kses');
    13301330
    13311331    // Comment filtering
    13321332    if ( current_user_can( 'unfiltered_html' ) )
    1333         add_filter( 'pre_comment_content', 'wp_kses_post' );
     1333        add_filter( 'pre_comment_content', 'wp_filter_post_kses' );
    13341334    else
    1335         add_filter( 'pre_comment_content', 'wp_kses_data' );
     1335        add_filter( 'pre_comment_content', 'wp_filter_kses' );
    13361336
    13371337    // Post filtering
    1338     add_filter('content_save_pre', 'wp_kses_post');
    1339     add_filter('excerpt_save_pre', 'wp_kses_post');
    1340     add_filter('content_filtered_save_pre', 'wp_kses_post');
     1338    add_filter('content_save_pre', 'wp_filter_post_kses');
     1339    add_filter('excerpt_save_pre', 'wp_filter_post_kses');
     1340    add_filter('content_filtered_save_pre', 'wp_filter_post_kses');
    13411341}
    13421342
     
    13551355function kses_remove_filters() {
    13561356    // Normal filtering
    1357     remove_filter('title_save_pre', 'wp_kses_data');
     1357    remove_filter('title_save_pre', 'wp_filter_kses');
    13581358
    13591359    // Comment filtering
    1360     remove_filter( 'pre_comment_content', 'wp_kses_post' );
    1361     remove_filter( 'pre_comment_content', 'wp_kses_data' );
     1360    remove_filter( 'pre_comment_content', 'wp_filter_post_kses' );
     1361    remove_filter( 'pre_comment_content', 'wp_filter_kses' );
    13621362
    13631363    // Post filtering
    1364     remove_filter('content_save_pre', 'wp_kses_post');
    1365     remove_filter('excerpt_save_pre', 'wp_kses_post');
    1366     remove_filter('content_filtered_save_pre', 'wp_kses_post');
     1364    remove_filter('content_save_pre', 'wp_filter_post_kses');
     1365    remove_filter('excerpt_save_pre', 'wp_filter_post_kses');
     1366    remove_filter('content_filtered_save_pre', 'wp_filter_post_kses');
    13671367}
    13681368
Note: See TracChangeset for help on using the changeset viewer.