Changeset 2915 for branches/plugin/bbp-includes/bbp-topic-template.php
- Timestamp:
- 02/18/2011 10:38:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-topic-template.php
r2914 r2915 62 62 */ 63 63 function bbp_has_topics( $args = '' ) { 64 global $wp_rewrite, $ bbp, $wpdb;64 global $wp_rewrite, $wp_query, $bbp, $wpdb; 65 65 66 66 $default = array ( … … 111 111 112 112 // If we're viewing a tax/term, use the existing query; if not, run our own 113 if ( !is _tax() ) {113 if ( !isset( $wp_query ) || !is_tax() ) 114 114 $bbp->topic_query = new WP_Query( $bbp_t ); 115 } else { 116 global $wp_query; 115 else 117 116 $bbp->topic_query = $wp_query; 118 }119 117 120 118 // Limited the number of pages shown
Note: See TracChangeset
for help on using the changeset viewer.