Changeset 4301 for trunk/bp-forums/bp-forums-template.php
- Timestamp:
- 04/29/2011 07:39:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-template.php
r4211 r4301 230 230 if ( !empty( $bp->displayed_user->id ) ) 231 231 $user_id = $bp->displayed_user->id; 232 233 // "Replied" query must be manually modified 234 if ( 'replies' == bp_current_action() ) { 235 $user_id = 0; // User id must be handled manually by the filter, not by BB_Query 236 237 add_filter( 'get_topics_distinct', 'bp_forums_add_replied_distinct_sql', 20 ); 238 add_filter( 'get_topics_join', 'bp_forums_add_replied_join_sql', 20 ); 239 add_filter( 'get_topics_where', 'bp_forums_add_replied_where_sql', 20 ); 240 } 232 241 233 242 // If we're in a single group, set this group's forum_id
Note: See TracChangeset
for help on using the changeset viewer.