# 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.
|
|
|
155 | 155 | |
156 | 156 | // Remove the custom kses filters from title and content for capable users and if the nonce is verified |
157 | 157 | 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 ); |
160 | 161 | } |
161 | 162 | |
162 | 163 | /** Topic Title ***********************************************************/ |
… |
… |
|
485 | 486 | |
486 | 487 | // Remove the custom kses filters from title and content for capable users and if the nonce is verified |
487 | 488 | 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 ); |
490 | 492 | } |
491 | 493 | |
492 | 494 | /** Topic Forum ***********************************************************/ |