← All changes
|
app/Shared/Services/PluginsActivation/TranslatePress.php
+5
-0
3.1.4
→
trunk
View file →
| @@ -13,8 +13,13 @@ | ||
| 13 | 13 | { |
| 14 | 14 | return 'translatepress-multilingual'; |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | + public static function isEligible(): bool | |
| 18 | + { | |
| 19 | + return empty(\get_option('trp_license_key')); | |
| 20 | + } | |
| 21 | + | |
| 17 | 22 | protected static function saveKey(array $data) |
| 18 | 23 | { |
| 19 | 24 | $key = $data['license_key'] ?? null; |
| 20 | 25 | |