| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | defined('ABSPATH') || exit; |
| 15 | 15 | |
| 16 | 16 | class Plugin |
| 17 | 17 | { |
| 18 | - public const VERSION = '1.10.3'; | |
| 18 | + public const VERSION = '1.10.19'; | |
| 19 | 19 | |
| 20 | 20 | public function __construct() |
| 21 | 21 | { |
| 22 | 22 | $this->onboarding(); |
| @@ -52,8 +52,10 @@ | ||
| 52 | 52 | private function notices() |
| 53 | 53 | { |
| 54 | 54 | if (!get_option('sync_basalam_review_never_remind')) { |
| 55 | 55 | add_action('admin_notices', function () { |
| 56 | + if (!AdminRegistrar::isWoosalamRelatedAdminScreen()) return; | |
| 57 | + | |
| 56 | 58 | $template = syncBasalamPlugin()->templatePath("notifications/LikeAlert.php"); |
| 57 | 59 | require_once $template; |
| 58 | 60 | }); |
| 59 | 61 | } |
| @@ -59,17 +61,23 @@ | ||
| 59 | 61 | } |
| 60 | 62 | |
| 61 | 63 | if (!syncBasalamSettings()->hasToken()) { |
| 62 | 64 | add_action('admin_notices', function () { |
| 65 | + if (!AdminRegistrar::isWoosalamRelatedAdminScreen()) return; | |
| 66 | + | |
| 63 | 67 | $template = syncBasalamPlugin()->templatePath("notifications/AccessAlert.php"); |
| 64 | 68 | require_once($template); |
| 65 | 69 | }); |
| 66 | 70 | } |
| 67 | 71 | add_action('admin_notices', function () { |
| 72 | + if (!AdminRegistrar::isWoosalamRelatedAdminScreen()) return; | |
| 73 | + | |
| 68 | 74 | $template = syncBasalamPlugin()->templatePath("notifications/HttpBlock.php"); |
| 69 | 75 | require_once($template); |
| 70 | 76 | }); |
| 71 | 77 | add_action('admin_notices', function () { |
| 78 | + if (!AdminRegistrar::isWoosalamRelatedAdminScreen()) return; | |
| 79 | + | |
| 72 | 80 | $circuitBreaker = new CircuitBreaker(); |
| 73 | 81 | |
| 74 | 82 | if ($circuitBreaker->getState() === CircuitBreaker::STATE_CLOSED) return; |
| 75 | 83 | |