Skip to:
Content

bbPress.org

Ticket #2315: topics-functions-2.patch

File topics-functions-2.patch, 1.9 KB (added by alex-ye, 12 years ago)
  • functions.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: \includes\topics
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    155155
    156156        // Remove the custom kses filters from title and content for capable users and if the nonce is verified
    157157        if ( current_user_can( 'unfiltered_html' ) && !empty( $_POST['_bbp_unfiltered_html_topic'] ) && wp_create_nonce( 'bbp-unfiltered-html-topic_new' ) == $_POST['_bbp_unfiltered_html_topic'] ) {
    158                 remove_filter( 'bbp_new_topic_pre_title',   'wp_filter_kses'  );
    159                 remove_filter( 'bbp_new_topic_pre_content', 'bbp_filter_kses' );
     158                remove_filter( 'bbp_new_topic_pre_title',   'wp_filter_kses'      );
     159                remove_filter( 'bbp_new_topic_pre_content', 'bbp_encode_bad',  10 );               
     160                remove_filter( 'bbp_new_topic_pre_content', 'bbp_filter_kses', 30 );
    160161        }
    161162
    162163        /** Topic Title ***********************************************************/
     
    485486
    486487        // Remove the custom kses filters from title and content for capable users and if the nonce is verified
    487488        if ( current_user_can( 'unfiltered_html' ) && !empty( $_POST['_bbp_unfiltered_html_topic'] ) && ( wp_create_nonce( 'bbp-unfiltered-html-topic_' . $topic_id ) == $_POST['_bbp_unfiltered_html_topic'] ) ) {
    488                 remove_filter( 'bbp_edit_topic_pre_title',   'wp_filter_kses'  );
    489                 remove_filter( 'bbp_edit_topic_pre_content', 'bbp_filter_kses' );
     489                remove_filter( 'bbp_edit_topic_pre_title',   'wp_filter_kses'      );
     490                remove_filter( 'bbp_edit_topic_pre_content', 'bbp_encode_bad',  10 );               
     491                remove_filter( 'bbp_edit_topic_pre_content', 'bbp_filter_kses', 30 );
    490492        }
    491493
    492494        /** Topic Forum ***********************************************************/