Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/10/2013 07:17:14 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Introduce bbp_repair_forum_visibility() and use it:

  • when creating a new BuddyPress Group Forum
  • in the bbp_admin_repair_forum_visibility() tool

Fixes issues with new group forums not bumping the private/hidden forum ID's. Props r-a-y. Fixes #2349.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/widgets.php

    r4995 r5017  
    557557
    558558        // Note: private and hidden forums will be excluded via the
    559         // bbp_pre_get_posts_exclude_forums filter and function.
     559        // bbp_pre_get_posts_normalize_forum_visibility action and function.
    560560        $widget_query = new WP_Query( array(
    561561            'post_type'           => bbp_get_forum_post_type(),
     
    781781
    782782        // Note: private and hidden forums will be excluded via the
    783         // bbp_pre_get_posts_exclude_forums filter and function.
     783        // bbp_pre_get_posts_normalize_forum_visibility action and function.
    784784        $widget_query = new WP_Query( $topics_query );
    785785
     
    11221122
    11231123        // Note: private and hidden forums will be excluded via the
    1124         // bbp_pre_get_posts_exclude_forums filter and function.
     1124        // bbp_pre_get_posts_normalize_forum_visibility action and function.
    11251125        $widget_query = new WP_Query( array(
    11261126            'post_type'           => bbp_get_reply_post_type(),
Note: See TracChangeset for help on using the changeset viewer.