Skip to content

Commit

Permalink
Merge pull request #113 from swissspidy/patch-1
Browse files Browse the repository at this point in the history
Check if `is_plugin_active` exists
  • Loading branch information
norcross authored Dec 2, 2024
2 parents a8a8047 + 474f17c commit d8e16c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airplane-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private function __construct() {
// Allows locally defined JETPACK_DEV_DEBUG constant to override filter.
if ( ! defined( 'JETPACK_DEV_DEBUG' ) ) {

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

Expand Down

0 comments on commit d8e16c6

Please sign in to comment.