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/Automations/MassAction.php +9 -4 10.1.4 → 11.1.0 View file →
@@ -7,23 +7,28 @@
7 7 trait MassAction
8 8 {
9 9 public function setFilterMassAction(): void
10 10 {
11 - $this->_saveFilters(true);
11 + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token');
12 +
13 + $this->setSaveFilters(true);
12 14 $this->summary();
13 15 }
14 16
15 17 public function setActionMassAction(): void
16 18 {
17 - $this->_saveActions(true);
19 + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token');
20 +
21 + $this->getSaveActions(true);
18 22 $this->filter();
19 23 }
20 24
21 25 public function processMassAction(): void
22 26 {
23 - acym_session();
27 + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token');
28 +
24 29 $automationClass = new AutomationClass();
25 - $massAction = empty($_SESSION['massAction']) ? '' : $_SESSION['massAction'];
30 + $massAction = acym_getVar('array', 'massAction', [], 'SESSION');
26 31 if (!empty($massAction)) {
27 32 $automation = new \stdClass();
28 33 $automation->filters = json_encode($massAction['filters']);
29 34 $automation->actions = json_encode($massAction['actions']);