Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/15/2013 10:05:57 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Rename bbp_pre_get_posts_exclude_forums() to bbp_pre_get_posts_normalize_forum_visibility(), to better describe what it does.

bbp_pre_get_posts_normalize_forum_visibility() is a dual purpose function, responsible for normalizing the post_status and post_parent scopes of bbPress related forum queries, against the current users capabilities. This means it must include forums for capable users, and exclude them for incapable users.

See #2221.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/actions.php

    r4773 r4808  
    148148
    149149// Always exclude private/hidden forums if needed
    150 add_action( 'pre_get_posts', 'bbp_pre_get_posts_exclude_forums', 4 );
     150add_action( 'pre_get_posts', 'bbp_pre_get_posts_normalize_forum_visibility', 4 );
    151151
    152152// Profile Page Messages
Note: See TracChangeset for help on using the changeset viewer.