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/Campaigns/AutoCampaigns.php +7 -1 10.11.1 → 11.1.0 View file →
@@ -83,12 +83,14 @@
83 83 'mail' => false,
84 84 ];
85 85 }
86 86
87 + //if campaign wait for confirmation
87 88 $campaign->waiting_confirmation = false;
88 89 if ($campaign->draft && $campaign->active) {
89 90 $campaign->waiting_confirmation = true;
90 91 }
92 + //if campaign canceled
91 93 $campaign->canceled = false;
92 94 if (!$campaign->draft && !$campaign->active) {
93 95 $campaign->canceled = true;
94 96 }
@@ -105,9 +107,9 @@
105 107
106 108 $this->prepareMultilingual($data, false);
107 109 $this->prepareAllMailsForMultilingual($data);
108 110
109 - $this->breadcrumb[acym_escape($mail->name)] = acym_completeLink('campaigns&task=summaryGenerated&campaignId='.$campaign->id);
111 + $this->breadcrumb[$mail->name] = acym_completeLink('campaigns&task=summaryGenerated&campaignId='.$campaign->id);
110 112 parent::display($data);
111 113 }
112 114
113 115 protected function changeStatusGeneratedCampaign(string $statusToApply = 'disable'): void
@@ -154,13 +156,17 @@
154 156 }
155 157
156 158 public function disableGeneratedCampaign(): void
157 159 {
160 + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token');
161 +
158 162 $this->changeStatusGeneratedCampaign();
159 163 }
160 164
161 165 public function enableGeneratedCampaign(): void
162 166 {
167 + wp_verify_nonce(acym_getVar('cmd', '_wpnonce'), 'acymnonce') || die('Invalid Token');
168 +
163 169 $this->changeStatusGeneratedCampaign('enable');
164 170 }
165 171
166 172 private function loadCampaignMail(int $campaignId): array