Skip to:
Content

bbPress.org

Changeset 2497


Ignore:
Timestamp:
07/20/2010 03:51:08 PM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes wrong post type count. props Nightgunner5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-templatetags.php

    r2496 r2497  
    261261            $forum_id = bbp_get_forum_id();
    262262
    263         $children = get_children( array( 'post_parent' => $forum_id, 'post_type' => BBP_TOPIC_REPLY_POST_TYPE_ID ) );
     263        $children = get_children( array( 'post_parent' => $forum_id, 'post_type' => BBP_TOPIC_POST_TYPE_ID ) );
    264264
    265265        return apply_filters( 'bbp_get_forum_topic_count', count( $children ) );
Note: See TracChangeset for help on using the changeset viewer.