[buddypress-trac] [BuddyPress] #2287: Filter Request: bp_get_the_topic_post_edit_text
    buddypress-trac at lists.automattic.com 
    buddypress-trac at lists.automattic.com
       
    Sun Apr  4 23:41:52 UTC 2010
    
    
  
#2287: Filter Request: bp_get_the_topic_post_edit_text
--------------------+-------------------------------------------------------
 Reporter:  nuprn1  |       Owner:       
     Type:  defect  |      Status:  new  
 Priority:  normal  |   Milestone:  1.2.4
Component:  Forums  |    Keywords:       
--------------------+-------------------------------------------------------
Comment(by nuprn1):
 also noticed on the theme /groups/single/forum/edit.php that
 bp_the_topic_text() was not attribute_escape like the post in the textarea
 - so maybe something like this:
 {{{
 add_action( 'bp_get_the_topic_edit_text', 'attribute_escape' );
 add_action( 'bp_get_the_post_edit_text', 'attribute_escape' );
 function bp_the_topic_post_edit_text() {
         echo bp_get_the_topic_post_edit_text();
 }
         function bp_get_the_topic_post_edit_text() {
                 global $bp;
                 $post = bp_forums_get_post( $bp->action_variables[4] );
                 return apply_filters( 'bp_get_the_topic_post_edit_text',
 $post->post_text );
         }
 function bp_the_topic_edit_text() {
         echo bp_get_the_topic_edit_text();
 }
         function bp_get_the_topic_edit_text() {
                 global $forum_template;
                 $post = bb_get_first_post(
 (int)$forum_template->topic->topic_id, false );
                 return apply_filters( 'bp_get_the_topic_edit_text',
 $post->post_text );
         }
 }}}
-- 
Ticket URL: <https://trac.buddypress.org/ticket/2287#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
    
    
More information about the buddypress-trac
mailing list