Skip to content

Commit

Permalink
fix can not find BP_Groups_Component with bp 2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
johappel committed Jun 30, 2016
1 parent 0d3d2cb commit 9dc1cca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bp-group-hierarchy-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function bp_group_hierarchy_overload_groups( $components ) {
require dirname(__FILE__) . '/bp-group-hierarchy-functions.php';

if( is_admin() && ! strpos( admin_url('admin-ajax.php'), $_SERVER['REQUEST_URI'] ) ) return $components;

global $bp;

$components = array_flip( $components );
Expand All @@ -194,6 +194,8 @@ function bp_group_hierarchy_overload_groups( $components ) {
add_action( 'bp_setup_components', 'bp_setup_groups_hierarchy', 6);

require dirname(__FILE__) . '/bp-group-hierarchy-loader.php';
/* @since required with buddypress 2.6.1 */
require( BP_PLUGIN_DIR . '/bp-groups/classes/class-bp-groups-component.php' );

}

Expand Down

0 comments on commit 9dc1cca

Please sign in to comment.