Skip to:
Content

BuddyPress.org


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

Bring back support for WordPress profiles when XProfile component is not active.

File:
1 edited

Legend:

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

    r4004 r4006  
    2222    $component_index = !empty( $bp->displayed_user ) ? $bp->current_component : bp_get_root_slug( $bp->current_component );
    2323
    24     if ( count( $bp->bp_options_nav[$component_index] ) < 1 )
     24    if ( !isset( $bp->bp_options_nav[$component_index] ) || count( $bp->bp_options_nav[$component_index] ) < 1 )
    2525        return false;
    2626
     
    979979    global $bp;
    980980
    981     if ( bp_is_current_component( 'xprofile' ) )
     981    if ( bp_is_current_component( 'xprofile' ) || bp_is_current_component( 'profile' ) )
    982982        return true;
    983983
Note: See TracChangeset for help on using the changeset viewer.