PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Controllers/MailboxActions/Listing.php +8 -1 10.10.2 → 11.1.0 View file →
@@ -9,12 +9,14 @@
9 9 trait Listing
10 10 {
11 11 public function prepareMailboxesListing(array &$data): void
12 12 {
13 + // Prepare the pagination
13 14 $mailboxesPerPage = $data['pagination']->getListLimit();
14 15 $page = $this->getVarFiltersListing('int', 'mailboxes_pagination_page', 1);
15 16 $status = $data['status'];
16 17
18 + // Get the matching mailboxes
17 19 $matchingMailboxes = $this->getMatchingElementsFromData(
18 20 [
19 21 'ordering' => $data['ordering'],
20 22 'search' => $data['search'],
@@ -55,9 +57,11 @@
55 57 }
56 58
57 59 public function duplicateMailboxAction(): void
58 60 {
59 - $mailboxActionSelected = acym_getVar('int', 'elements_checked');
61 + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token');
62 +
63 + $mailboxActionSelected = acym_getVar('array', 'elements_checked', []);
60 64 if (empty($mailboxActionSelected)) {
61 65 return;
62 66 }
63 67
@@ -68,8 +72,10 @@
68 72 }
69 73
70 74 public function deleteMailboxAction(): void
71 75 {
76 + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token');
77 +
72 78 $mailboxActionSelected = acym_getVar('array', 'elements_checked');
73 79 if (empty($mailboxActionSelected)) {
74 80 return;
75 81 }
@@ -93,8 +99,9 @@
93 99 if (empty($actions)) {
94 100 continue;
95 101 }
96 102
103 + // We build the actions to display in the listing
97 104 $actionsRendered = [];
98 105 foreach ($actions as $action) {
99 106 acym_trigger('onAcymMailboxActionSummaryListing', [&$action, &$actionsRendered]);
100 107 }