Skip to content

Commit d8e16c6

Browse files
authored
Merge pull request #113 from swissspidy/patch-1
Check if `is_plugin_active` exists
2 parents a8a8047 + 474f17c commit d8e16c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airplane-mode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private function __construct() {
155155
// Allows locally defined JETPACK_DEV_DEBUG constant to override filter.
156156
if ( ! defined( 'JETPACK_DEV_DEBUG' ) ) {
157157

158-
if ( ! function_exists( 'get_plugin_data' ) ) {
158+
if ( ! function_exists( 'get_plugin_data' ) || ! function_exists( 'is_plugin_active' ) ) {
159159
require_once ABSPATH . 'wp-admin/includes/plugin.php';
160160
}
161161

0 commit comments

Comments
 (0)