| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | * @return void |
| 58 | 58 | */ |
| 59 | 59 | public static function handle_ajax_migration() { |
| 60 | 60 | // Check nonce |
| 61 | - if (!wp_verify_nonce($_POST['nonce'], 'easy_invoice_migration_nonce')) { | |
| 61 | + if (!wp_verify_nonce(($_POST['nonce'] ?? ''), 'easy_invoice_migration_nonce')) { | |
| 62 | 62 | wp_die('Security check failed'); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | // Check permissions |
| @@ -98,9 +98,9 @@ | ||
| 98 | 98 | * @return void |
| 99 | 99 | */ |
| 100 | 100 | public static function handle_check_status() { |
| 101 | 101 | // Check nonce |
| 102 | - if (!wp_verify_nonce($_GET['nonce'], 'easy_invoice_migration_nonce')) { | |
| 102 | + if (!wp_verify_nonce(($_GET['nonce'] ?? ''), 'easy_invoice_migration_nonce')) { | |
| 103 | 103 | wp_die('Security check failed'); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | // Check permissions |
| @@ -126,9 +126,9 @@ | ||
| 126 | 126 | * @return void |
| 127 | 127 | */ |
| 128 | 128 | public static function handle_get_migration_counts() { |
| 129 | 129 | // Check nonce |
| 130 | - if (!wp_verify_nonce($_GET['nonce'], 'easy_invoice_migration_nonce')) { | |
| 130 | + if (!wp_verify_nonce(($_GET['nonce'] ?? ''), 'easy_invoice_migration_nonce')) { | |
| 131 | 131 | wp_die('Security check failed'); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | // Check permissions |
| @@ -242,9 +242,9 @@ | ||
| 242 | 242 | * @return void |
| 243 | 243 | */ |
| 244 | 244 | public static function handle_ajax_cleanup() { |
| 245 | 245 | // Check nonce |
| 246 | - if (!wp_verify_nonce($_POST['nonce'], 'easy_invoice_migration_nonce')) { | |
| 246 | + if (!wp_verify_nonce(($_POST['nonce'] ?? ''), 'easy_invoice_migration_nonce')) { | |
| 247 | 247 | wp_die('Security check failed'); |
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | // Check permissions |