Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/02/2011 01:26:28 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Switch setting from bp-deactivated-components to bp-active-components. Adjust some verbiage on the component settings page. Use smarter logic to show/hide possible directory page assignments based on active components.

File:
1 edited

Legend:

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

    r3983 r3989  
    858858
    859859function bp_is_active( $component ) {
    860     global $bp_deactivated;
    861 
    862     if ( !isset( $bp_deactivated[ 'bp-' . $component . '/bp-' . $component . '-loader.php' ] ) )
     860    global $bp;
     861
     862    if ( isset( $bp->active_components[$component] ) )
    863863        return true;
    864864
Note: See TracChangeset for help on using the changeset viewer.