PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.19
ووسلام – همگام سازی ووکامرس و باسلام v1.10.19
1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 1.8.5 1.8.6 All 53 releases
← All changes | includes/Plugin.php +9 -1 1.10.31.10.19 View file →
@@ -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