Changeset 5684 for trunk/src/includes/replies/functions.php
- Timestamp:
- 04/15/2015 03:06:31 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/replies/functions.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r5676 r5684 90 90 * @uses is_wp_error() To check if the value retrieved is a {@link WP_Error} 91 91 * @uses remove_filter() To remove kses filters if needed 92 * @uses esc_attr() For sanitization93 92 * @uses bbp_check_for_flood() To check for flooding 94 93 * @uses bbp_check_for_duplicate() To check for duplicates … … 263 262 264 263 if ( !empty( $_POST['bbp_reply_title'] ) ) { 265 $reply_title = esc_attr( strip_tags( $_POST['bbp_reply_title'] ));264 $reply_title = sanitize_text_field( $_POST['bbp_reply_title'] ); 266 265 } 267 266 … … 330 329 // Either replace terms 331 330 if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) && ! empty( $_POST['bbp_topic_tags'] ) ) { 332 $terms = esc_attr( strip_tags( $_POST['bbp_topic_tags'] ));331 $terms = sanitize_text_field( $_POST['bbp_topic_tags'] ); 333 332 334 333 // ...or remove them. … … 472 471 * @uses is_wp_error() To check if the value retrieved is a {@link WP_Error} 473 472 * @uses remove_filter() To remove kses filters if needed 474 * @uses esc_attr() For sanitization 475 * @uses apply_filters() Calls 'bbp_edit_reply_pre_title' with the title and 476 * reply id 477 * @uses apply_filters() Calls 'bbp_edit_reply_pre_content' with the content 478 * reply id 473 * @uses apply_filters() Calls 'bbp_edit_reply_pre_title' with the title and id 474 * @uses apply_filters() Calls 'bbp_edit_reply_pre_content' with the content id 479 475 * @uses wp_set_post_terms() To set the topic tags 480 476 * @uses bbp_has_errors() To get the {@link WP_Error} errors … … 600 596 601 597 if ( !empty( $_POST['bbp_reply_title'] ) ) { 602 $reply_title = esc_attr( strip_tags( $_POST['bbp_reply_title'] ));598 $reply_title = sanitize_text_field( $_POST['bbp_reply_title'] ); 603 599 } 604 600 … … 652 648 // Either replace terms 653 649 if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) && ! empty( $_POST['bbp_topic_tags'] ) ) { 654 $terms = esc_attr( strip_tags( $_POST['bbp_topic_tags'] ));650 $terms = sanitize_text_field( $_POST['bbp_topic_tags'] ); 655 651 656 652 // ...or remove them. … … 718 714 // Revision Reason 719 715 if ( !empty( $_POST['bbp_reply_edit_reason'] ) ) { 720 $reply_edit_reason = esc_attr( strip_tags( $_POST['bbp_reply_edit_reason'] ));716 $reply_edit_reason = sanitize_text_field( $_POST['bbp_reply_edit_reason'] ); 721 717 } 722 718 … … 1384 1380 // Use the new title that was passed 1385 1381 if ( !empty( $_POST['bbp_reply_move_destination_title'] ) ) { 1386 $destination_topic_title = esc_attr( strip_tags( $_POST['bbp_reply_move_destination_title'] ));1382 $destination_topic_title = sanitize_text_field( $_POST['bbp_reply_move_destination_title'] ); 1387 1383 1388 1384 // Use the source topic title
Note: See TracChangeset
for help on using the changeset viewer.