Skip to:
Content

bbPress.org

Changeset 4724


Ignore:
Timestamp:
01/27/2013 01:36:31 AM (13 years ago)
Author:
johnjamesjacoby
Message:

When calculating the child forum count, check all post ID's with matching parents instead of only public ones. Helps fix bug causing private and hidden forums to not appear. In the future, this could be handled better, without hardcoded post status checks. See #2085.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/forums/functions.php

    r4655 r4724  
    17261726 */
    17271727function bbp_forum_query_subforum_ids( $forum_id ) {
    1728     $subforum_ids = bbp_get_public_child_ids( $forum_id, bbp_get_forum_post_type() );
     1728    $subforum_ids = bbp_get_all_child_ids( $forum_id, bbp_get_forum_post_type() );
    17291729    //usort( $subforum_ids, '_bbp_forum_query_usort_subforum_ids' );
    17301730
Note: See TracChangeset for help on using the changeset viewer.