Skip to content

Commit bbf7c75

Browse files
authored
Merge pull request #8 from WordPress-Phoenix/develop
hotpatch: fix single site
2 parents fd91b98 + 84e542f commit bbf7c75

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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.

src/abstract-plugin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)