Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 02:07:08 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Introduce _has_directory() functions for forums, groups, members, and activity components. This replaces the need for enabling/disabling the forum directory, since if it is not set it does not exist.

File:
1 edited

Legend:

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

    r4536 r4596  
    1919        $pages[] = $bp->pages->register->id;
    2020
    21     if ( !bp_is_active( 'forums' ) || ( bp_is_active( 'forums' ) && !bp_forums_is_installed_correctly() ) )
    22         if ( !empty( $bp->pages->forums ) )
    23             $pages[] = $bp->pages->forums->id;
     21    if ( !bp_is_active( 'forums' ) || ( bp_is_active( 'forums' ) && bp_forums_has_directory() && !bp_forums_is_installed_correctly() ) )
     22        $pages[] = $bp->pages->forums->id;
    2423
    2524    return apply_filters( 'bp_core_exclude_pages', $pages );
Note: See TracChangeset for help on using the changeset viewer.