File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ #### 2.5.1
2+ * Fix single site issue
3+
14#### 2.5.0
25* Added logic that allows WordPress VIP hosted plugins to run on init instead of plugins_loaded.
36* Added parameters and logic to determine is_network_active on the plugin object.
Original file line number Diff line number Diff line change @@ -243,7 +243,11 @@ protected function configure_defaults() {
243243 $ assumed_plugin_name = basename ( $ this ->plugin_basedir );
244244 $ this ->plugin_file = $ this ->plugin_basedir . '/ ' . $ assumed_plugin_name . '.php ' ;
245245 $ this ->wp_plugin_slug = $ assumed_plugin_name . '/ ' . $ assumed_plugin_name . '.php ' ;
246- $ this ->is_network_active = is_plugin_active_for_network ( $ this ->wp_plugin_slug );
246+
247+ if ( is_callable ( 'is_plugin_active_for_network ' ) ) {
248+ $ this ->is_network_active = is_plugin_active_for_network ( $ this ->wp_plugin_slug );
249+ }
250+
247251 if ( file_exists ( $ this ->plugin_file ) ) {
248252 $ this ->installed_url = plugins_url ( '/ ' , $ this ->plugin_file );
249253 // Ensure get_plugin_data is available
You can’t perform that action at this time.
0 commit comments