Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: MU 2.9.1 Upgrade … What broke?


peterverkooijen
Participant

@peterverkooijen

Andy Peatling posted this code on another thread:

/*** Make sure BuddyPress is loaded ********************************/
if ( !function_exists( 'bp_core_install' ) ) {
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
if ( is_plugin_active( 'buddypress/bp-loader.php' ) )
require_once ( WP_PLUGIN_DIR . '/buddypress/bp-loader.php' );
else {
deactivate_plugins( __FILE__, true );
return;
}
}
/*******************************************************************/

You have to put it at the top of plugins to make sure that BuddyPress is loaded before the plugin. Does this accomplish the same thing as dpolant’s and M’s code? Are there arguments to use one instead of the other?

Haven’t had time to try it yet…

Skip to toolbar