PluginProbe
Extendify / trunk
Extendify vtrunk
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | app/Shared/Services/PluginsActivation/Imagify.php +12 -0 3.1.2 → trunk View file →
@@ -13,8 +13,20 @@
13 13 {
14 14 return 'imagify';
15 15 }
16 16
17 + public static function isEligible(): bool
18 + {
19 + // A key from IMAGIFY_API_KEY or the network option reaches only their accessor.
20 + if (function_exists('get_imagify_option')) {
21 + return empty(\get_imagify_option('api_key'));
22 + }
23 +
24 + $settings = (array) \get_option('imagify_settings', []);
25 +
26 + return empty($settings['api_key']);
27 + }
28 +
17 29 protected static function saveKey(array $data)
18 30 {
19 31 $key = $data['api_key'] ?? null;
20 32