Skip to:
Content

bbPress.org

Ticket #2315: replies-functions-2.patch

File replies-functions-2.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\replies
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    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'] ) {
    172172                remove_filter( 'bbp_new_reply_pre_title',   'wp_filter_kses'  );
    173                 remove_filter( 'bbp_new_reply_pre_content', 'bbp_filter_kses' );
     173                remove_filter( 'bbp_new_reply_pre_content', 'bbp_filter_kses', 30 );
    174174        }
    175175
    176176        /** Reply Title ***********************************************************/
     
    458458        // Remove the custom kses filters from title and content for capable users and if the nonce is verified
    459459        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'] ) {
    460460                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_content', 'bbp_filter_kses', 30 );
    462462        }
    463463
    464464        /** Reply Topic ***********************************************************/