Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/28/2009 05:58:40 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1060

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-filters.php

    r1905 r1974  
    5858
    5959/**** Filters for group forums ****/
     60
    6061function groups_add_forum_privacy_sql() {
    6162    global $bp;
    6263   
    63     if ( !$bp->groups->current_group ) {
     64    /* Only filter the forum SQL on group pages or on the forums directory */
     65    if ( $bp->groups->current_group || bp_is_directory() ) {
    6466        add_filter( 'get_topics_fields', 'groups_add_forum_fields_sql' );
    6567        add_filter( 'get_topics_index_hint', 'groups_add_forum_tables_sql' );
Note: See TracChangeset for help on using the changeset viewer.