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/Stats/LinksDetails.php +12 -4 10.0.1 → 11.1.0 View file →
@@ -5,16 +5,19 @@
5 5 use AcyMailing\Helpers\ExportHelper;
6 6
7 7 trait LinksDetails
8 8 {
9 - public function linksDetails()
9 + public function linksDetails(): void
10 10 {
11 11 acym_setVar('layout', 'links_details');
12 12
13 13 $data = [];
14 14
15 - if (!$this->prepareDefaultPageInfo($data, true)) return;
15 + if (!$this->prepareDefaultPageInfo($data, true)) {
16 + return;
17 + }
16 18
19 + $data['anonymousStats'] = !empty($this->config->get('anonymous_stats', 0));
17 20 $this->prepareLinksDetailsListing($data);
18 21 if (count($this->selectedMailIds) == 1) {
19 22 if ($data['isAbTest']) {
20 23 $this->prepareAbTestMails($data);
@@ -26,11 +29,16 @@
26 29
27 30 parent::display($data);
28 31 }
29 32
30 - public function exportLinksDetails()
33 + public function exportLinksDetails(): void
31 34 {
32 - if (!$this->prepareDefaultPageInfo($data, true)) return;
35 + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token');
36 +
37 + $data = [];
38 + if (!$this->prepareDefaultPageInfo($data, true)) {
39 + return;
40 + }
33 41
34 42 $this->prepareLinksDetailsListing($data);
35 43 $exportHelper = new ExportHelper();
36 44