Skip to:
Content

bbPress.org

Changeset 2433


Ignore:
Timestamp:
05/28/2010 04:00:02 AM (16 years ago)
Author:
mdawaffe
Message:

include closed posts in bb_latest_topics_pages(). Fixes #1278

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-template.php

    r2431 r2433  
    673673    if ( !$bb_latest_topics_count) {
    674674        global $bbdb;
    675         $bb_latest_topics_count = $bbdb->get_var('SELECT COUNT(`topic_id`) FROM `' . $bbdb->topics . '` WHERE `topic_open` = 1 AND `topic_status` = 0 AND `topic_sticky` != 2;');
     675        $bb_latest_topics_count = $bbdb->get_var('SELECT COUNT(`topic_id`) FROM `' . $bbdb->topics . '` WHERE `topic_status` = 0 AND `topic_sticky` != 2;');
    676676    }
    677677    if ( $pages = apply_filters( 'bb_latest_topics_pages', get_page_number_links( $page, $bb_latest_topics_count ), $bb_latest_topics_count ) ) {
Note: See TracChangeset for help on using the changeset viewer.