Ticket #2145: strip_tags_on_forum_edit_screens.patch
File strip_tags_on_forum_edit_screens.patch, 869 bytes (added by , 15 years ago) |
---|
-
bp-forums/bp-forums-templatetags.php
253 253 global $forum_template; 254 254 255 255 $post = bb_get_first_post( (int)$forum_template->topic->topic_id, false ); 256 257 if ( bp_is_group_forum_topic_edit() ) 258 $post->post_text = strip_tags( $post->post_text ); 259 256 260 return apply_filters( 'bp_get_the_topic_text', $post->post_text ); 257 261 } 258 262 … … 937 941 global $bp; 938 942 939 943 $post = bp_forums_get_post( $bp->action_variables[4] ); 940 return attribute_escape( $post->post_text ); 944 945 if ( bp_is_group_forum_topic_edit() ) 946 $post->post_text = strip_tags( $post->post_text ); 947 948 return esc_attr( $post->post_text ); 941 949 } 942 950 943 951 function bp_the_topic_pagination() {