Plugin Directory

Changeset 773012


Ignore:
Timestamp:
09/16/2013 01:50:31 AM (13 years ago)
Author:
ddean
Message:

Fix issues with BP 1.6

Location:
bp-group-hierarchy/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bp-group-hierarchy/trunk/bp-group-hierarchy-classes-legacy.php

    r763873 r773012  
    2828        global $bp, $wpdb;
    2929
    30         if( ! function_exists( 'buddypress' ) ) {
     30        if( ! function_exists( 'buddypress' ) && ! is_a( $bp, 'BuddyPress' ) ) {
    3131            bp_group_hierarchy_debug('BP not loaded');
    3232            return;
  • bp-group-hierarchy/trunk/index.php

    r765238 r773012  
    3636
    3737    // Check whether BP is active and whether Groups component is loaded, and throw error if not
    38     if( ! function_exists( 'buddypress' ) || ! bp_is_active( 'groups' ) ) {
     38    if( ! ( function_exists( 'buddypress' ) || is_a( $bp, 'BuddyPress' ) ) || ! bp_is_active( 'groups' ) ) {
    3939        _e( 'BuddyPress is not installed or the Groups component is not activated. Cannot continue install.', 'bp-group-hierarchy' );
    4040        exit;
Note: See TracChangeset for help on using the changeset viewer.