PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 3.1.4
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v3.1.4
3.1.4 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 trunk 1.5.0 1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 All 93 releases
← All changes | includes/Admin/ModuleService.php +8 -4 3.0.53.1.4 View file →
@@ -7,12 +7,8 @@
7 7 if (!defined('ABSPATH')) {
8 8 exit;
9 9 } // Exit if accessed directly
10 10
11 -if (!function_exists('is_plugin_active')) {
12 - include_once(ABSPATH . 'wp-admin/includes/plugin.php');
13 -}
14 -
15 11 class ModuleService {
16 12
17 13
18 14
@@ -1060,8 +1056,12 @@
1060 1056 return $callable($settings);
1061 1057 }
1062 1058
1063 1059 private static function _is_plugin_installed($plugin, $plugin_path) {
1060 + if (!function_exists('get_plugins')) {
1061 + require_once ABSPATH . 'wp-admin/includes/plugin.php';
1062 + }
1063 +
1064 1064 $installed_plugins = get_plugins();
1065 1065 return isset($installed_plugins[$plugin_path]);
1066 1066 }
1067 1067
@@ -1077,8 +1077,12 @@
1077 1077 }
1078 1078
1079 1079 public static function is_plugin_active($plugin_path) {
1080 1080 if ($plugin_path) {
1081 + if (!function_exists('is_plugin_active')) {
1082 + require_once ABSPATH . 'wp-admin/includes/plugin.php';
1083 + }
1084 +
1081 1085 return is_plugin_active($plugin_path);
1082 1086 }
1083 1087 }
1084 1088