Changeset 5559 for trunk/src/includes/topics/template.php
- Timestamp:
- 11/10/2014 06:09:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/template.php
r5558 r5559 3850 3850 // Get _POST data 3851 3851 if ( bbp_is_topic_form_post_request() && isset( $_POST['bbp_topic_title'] ) ) { 3852 $topic_title = stripslashes( $_POST['bbp_topic_title'] );3852 $topic_title = wp_unslash( $_POST['bbp_topic_title'] ); 3853 3853 3854 3854 // Get edit data … … 3861 3861 } 3862 3862 3863 return apply_filters( 'bbp_get_form_topic_title', esc_attr( $topic_title ));3863 return apply_filters( 'bbp_get_form_topic_title', $topic_title ); 3864 3864 } 3865 3865 … … 3887 3887 // Get _POST data 3888 3888 if ( bbp_is_topic_form_post_request() && isset( $_POST['bbp_topic_content'] ) ) { 3889 $topic_content = stripslashes( $_POST['bbp_topic_content'] );3889 $topic_content = wp_unslash( $_POST['bbp_topic_content'] ); 3890 3890 3891 3891 // Get edit data … … 3934 3934 // Get _POST data 3935 3935 if ( ( bbp_is_topic_form_post_request() || bbp_is_reply_form_post_request() ) && isset( $_POST['bbp_topic_tags'] ) ) { 3936 $topic_tags = stripslashes( $_POST['bbp_topic_tags'] );3936 $topic_tags = wp_unslash( $_POST['bbp_topic_tags'] ); 3937 3937 3938 3938 // Get edit data … … 3990 3990 } 3991 3991 3992 return apply_filters( 'bbp_get_form_topic_tags', esc_attr( $topic_tags ));3992 return apply_filters( 'bbp_get_form_topic_tags', $topic_tags ); 3993 3993 } 3994 3994 … … 4148 4148 // Get _POST data 4149 4149 if ( bbp_is_topic_form_post_request() && isset( $_POST['bbp_topic_edit_reason'] ) ) { 4150 $topic_edit_reason = stripslashes( $_POST['bbp_topic_edit_reason'] );4150 $topic_edit_reason = wp_unslash( $_POST['bbp_topic_edit_reason'] ); 4151 4151 4152 4152 // No data
Note: See TracChangeset
for help on using the changeset viewer.