| @@ -4,12 +4,11 @@ | ||
| 4 | 4 | * Description: Manage your contact lists and send newsletters from your site. |
| 5 | 5 | * Author: AcyMailing Newsletter Team |
| 6 | 6 | * Author URI: https://www.acymailing.com |
| 7 | 7 | * License: GPLv3 |
| 8 | - * Version: 10.10.2 | |
| 8 | + * Version: 11.1.0 | |
| 9 | 9 | * Text Domain: acymailing |
| 10 | - * Domain Path: /language | |
| 11 | - * Requires at least: 5.0 | |
| 10 | + * Requires at least: 5.8 | |
| 12 | 11 | * Requires PHP: 7.4 |
| 13 | 12 | */ |
| 14 | 13 | |
| 15 | 14 | use AcyMailing\WpInit\Activation; |
| @@ -26,9 +25,8 @@ | ||
| 26 | 25 | use AcyMailing\WpInit\Oauth; |
| 27 | 26 | use AcyMailing\WpInit\OverrideEmail; |
| 28 | 27 | use AcyMailing\WpInit\Router; |
| 29 | 28 | use AcyMailing\WpInit\Security; |
| 30 | -use AcyMailing\WpInit\Update; | |
| 31 | 29 | use AcyMailing\WpInit\UserSync; |
| 32 | 30 | use AcyMailing\WpInit\WpRocket; |
| 33 | 31 | |
| 34 | 32 | defined('ABSPATH') || die('Restricted Access'); |
| @@ -120,9 +118,9 @@ | ||
| 120 | 118 | return; |
| 121 | 119 | } |
| 122 | 120 | |
| 123 | 121 | |
| 124 | - new Update(); | |
| 122 | + | |
| 125 | 123 | $router = new Router(); |
| 126 | 124 | new Menu($router); |
| 127 | 125 | new UserSync(); |
| 128 | 126 | new Message(); |
| @@ -139,11 +137,12 @@ | ||
| 139 | 137 | new Oauth(); |
| 140 | 138 | new Data(); |
| 141 | 139 | } |
| 142 | 140 | |
| 141 | + | |
| 143 | 142 | private function isCurrentlyOnAcyPage(): bool |
| 144 | 143 | { |
| 145 | - // Make sure we're on an AcyMailing page | |
| 144 | + // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Make sure we're on an AcyMailing page. | |
| 146 | 145 | $page = isset($_REQUEST['page']) ? sanitize_text_field(wp_unslash($_REQUEST['page'])) : ''; |
| 147 | 146 | |
| 148 | 147 | return !empty($page) && strpos($page, 'acymailing_') !== false; |
| 149 | 148 | } |