Skip to:
Content

bbPress.org

Ticket #2315: topics-functions.patch

File topics-functions.patch, 1.6 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.
     
    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'] ) {
    158158                remove_filter( 'bbp_new_topic_pre_title',   'wp_filter_kses'  );
    159                 remove_filter( 'bbp_new_topic_pre_content', 'bbp_filter_kses' );
     159                remove_filter( 'bbp_new_topic_pre_content', 'bbp_filter_kses', 30 );
    160160        }
    161161
    162162        /** Topic Title ***********************************************************/
     
    486486        // Remove the custom kses filters from title and content for capable users and if the nonce is verified
    487487        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'] ) ) {
    488488                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_content', 'bbp_filter_kses', 30 );
    490490        }
    491491
    492492        /** Topic Forum ***********************************************************/