Changeset 4059 for branches/plugin/bbp-includes/bbp-core-shortcodes.php
- Timestamp:
- 07/05/2012 05:32:33 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-shortcodes.php
r4048 r4059 377 377 } 378 378 379 // Filter the query380 if ( ! bbp_is_single_topic() ) {381 add_filter( 'bbp_before_has_replies_parse_args', array( $this, 'display_topic_query' ) );382 }383 384 379 // Start output buffer 385 380 $this->start( 'bbp_single_topic' ); … … 749 744 $args['show_stickies'] = true; 750 745 $args['order'] = 'DESC'; 751 return $args;752 }753 754 /**755 * Filter the query for the topic index756 *757 * @since bbPress (r3637)758 *759 * @param array $args760 * @return array761 */762 public function display_topic_query( $args = array() ) {763 $args['meta_query'] = array( array(764 'key' => '_bbp_topic_id',765 'value' => bbpress()->current_topic_id,766 'compare' => '='767 ) );768 769 746 return $args; 770 747 }
Note: See TracChangeset
for help on using the changeset viewer.