Skip to:
Content

bbPress.org

Ticket #2315: replies-functions-3.patch

File replies-functions-3.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\replies
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    169169
    170170        // Remove the custom kses filters from title and content for capable users and if the nonce is verified
    171171        if ( current_user_can( 'unfiltered_html' ) && !empty( $_POST['_bbp_unfiltered_html_reply'] ) && wp_create_nonce( 'bbp-unfiltered-html-reply_' . $topic_id ) == $_POST['_bbp_unfiltered_html_reply'] ) {
    172                 remove_filter( 'bbp_new_reply_pre_title',   'wp_filter_kses'  );
    173                 remove_filter( 'bbp_new_reply_pre_content', 'bbp_filter_kses' );
     172                remove_filter( 'bbp_new_reply_pre_title',   'wp_filter_kses'      );
     173       remove_filter( 'bbp_new_reply_pre_content', 'bbp_encode_bad',  10 );
     174                remove_filter( 'bbp_new_reply_pre_content', 'bbp_filter_kses', 30 );
    174175        }
    175176
    176177        /** Reply Title ***********************************************************/
     
    457458
    458459        // Remove the custom kses filters from title and content for capable users and if the nonce is verified
    459460        if ( current_user_can( 'unfiltered_html' ) && !empty( $_POST['_bbp_unfiltered_html_reply'] ) && wp_create_nonce( 'bbp-unfiltered-html-reply_' . $reply_id ) == $_POST['_bbp_unfiltered_html_reply'] ) {
    460                 remove_filter( 'bbp_edit_reply_pre_title',   'wp_filter_kses'  );
    461                 remove_filter( 'bbp_edit_reply_pre_content', 'bbp_filter_kses' );
     461                remove_filter( 'bbp_edit_reply_pre_title',   'wp_filter_kses'      );
     462                remove_filter( 'bbp_edit_reply_pre_content', 'bbp_encode_bad',  10 );               
     463                remove_filter( 'bbp_edit_reply_pre_content', 'bbp_filter_kses', 30 );
    462464        }
    463465
    464466        /** Reply Topic ***********************************************************/