File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,15 @@ public static function is_buddypress_supported() {
178178
179179 $ bp_classic_plugin_basename = plugin_basename ( __FILE__ );
180180
181- // Informs about whether BuddyPress is network activated or not.
182- self ::$ network_config ->bp_classic_is_network_active = isset ( $ sitewide_plugins [ $ bp_classic_plugin_basename ] );
181+ // Informs about whether BP Classic is network activated or not.
182+ $ bp_classic_is_network_active = isset ( $ sitewide_plugins [ $ bp_classic_plugin_basename ] );
183+
184+ // If BP Classic is being activated on the network set it as network activated to run the migration script.
185+ if ( ! $ bp_classic_is_network_active && is_network_admin () && 'activate_bp-classic/class-bp-classic.php ' === current_action () ) {
186+ $ bp_classic_is_network_active = true ;
187+ }
188+
189+ self ::$ network_config ->bp_classic_is_network_active = $ bp_classic_is_network_active ;
183190
184191 // BP & BP Classic need to be activated the same way in Multisite configs.
185192 if ( self ::$ network_config ->bp_classic_is_network_active !== self ::$ network_config ->bp_is_network_active ) {
You can’t perform that action at this time.
0 commit comments