# 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.
|
|
|
|
| 169 | 169 | |
| 170 | 170 | // Remove the custom kses filters from title and content for capable users and if the nonce is verified |
| 171 | 171 | 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 ); |
| 174 | 175 | } |
| 175 | 176 | |
| 176 | 177 | /** Reply Title ***********************************************************/ |
| … |
… |
|
| 457 | 458 | |
| 458 | 459 | // Remove the custom kses filters from title and content for capable users and if the nonce is verified |
| 459 | 460 | 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 ); |
| 462 | 464 | } |
| 463 | 465 | |
| 464 | 466 | /** Reply Topic ***********************************************************/ |