[buddypress-trac] [BuddyPress] #4715: filter option in group forum post

buddypress-trac noreply at wordpress.org
Tue Dec 11 20:21:22 UTC 2012

#4715: filter option in group forum post
 Reporter:  chouf1        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
 When using syntaxhighlighter, they're several output problems.

 I changed the filter option in bp-forums-template.php

 function bp_the_topic_post_content() {
         echo bp_get_the_topic_post_content();
         function bp_get_the_topic_post_content() {
                 global $topic_template;

                 //return apply_filters( 'bp_get_the_topic_post_content',
 stripslashes( $topic_template->post->post_text ) );
                 return apply_filters( 'bp_get_the_topic_post_content',
 wp_specialchars_decode( $topic_template->post->post_text, ENT_QUOTES ) );

 Can you add this to the next update ?

 To complete for my need, i also added this to functions.php
 remove_filter( 'bp_get_the_topic_post_content', 'bp_forums_filter_kses', 1
 remove_filter( 'bp_get_the_topic_post_content', 'wptexturize' );

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4715>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list