Changeset 3660 for trunk/bp-forums.php
- Timestamp:
- 01/05/2011 10:03:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r3659 r3660 373 373 do_action( 'bbpress_init' ); 374 374 375 $count = $bbdb->get_results( $bbdb->prepare( "SELECT t.topic_id FROM {$bbdb->topics} AS t". groups_add_forum_tables_sql( '' ) . " WHERE " . groups_add_forum_where_sql( "t.topic_status = '0'" ) ) );375 $count = $bbdb->get_results( $bbdb->prepare( "SELECT t.topic_id FROM {$bbdb->topics} AS t". groups_add_forum_tables_sql( '' ) . " WHERE " . groups_add_forum_where_sql( "t.topic_status = 0" ) ) ); 376 376 return apply_filters( 'bp_forums_total_topic_count', count( (array)$count ) ); 377 377 } … … 547 547 } 548 548 549 550 549 function bp_forums_get_forum_topicpost_count( $forum_id ) { 551 550 global $wpdb, $bbdb; … … 556 555 return $wpdb->get_results( $wpdb->prepare( "SELECT topics, posts from {$bbdb->forums} WHERE forum_id = %d", $forum_id ) ); 557 556 } 558 559 557 560 558 function bp_forums_filter_caps( $allcaps ) { … … 589 587 add_action( 'bp_forums_new_topic', 'bp_core_clear_cache' ); 590 588 add_action( 'bp_forums_new_post', 'bp_core_clear_cache' ); 591 592 589 ?>
Note: See TracChangeset
for help on using the changeset viewer.