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/Helpers/UpdateHelper.php +5 -3 10.11.1 → 11.1.0 View file →
@@ -15,14 +15,15 @@
15 15 use Update\Patchv7;
16 16 use Update\Patchv8;
17 17 use Update\Patchv9;
18 18 use Update\Patchv10;
19 + use Update\Patchv11;
19 20
20 21 const FIRST_EMAIL_NAME_KEY = 'ACYM_FIRST_EMAIL_NAME';
21 22 const BOUNCE_VERSION = 9;
22 23
23 24 private string $level = 'starter';
24 - private string $version = '10.11.1';
25 + private string $version = '11.1.0';
25 26 private string $previousVersion;
26 27 private bool $isUpdating = false;
27 28
28 29 public bool $firstInstallation = true;
@@ -28,13 +29,14 @@
28 29 public bool $firstInstallation = true;
29 30
30 31 public function deleteNewSplashScreenInstall(): void
31 32 {
33 + // First installation or installing the same version => don't show the splashscreen
32 34 if (!$this->isUpdating || (!empty($this->previousVersion) && version_compare($this->previousVersion, $this->version, '='))) {
33 35 $splashscreenJson = ACYM_PARTIAL.'update'.DS.'changelogs_splashscreen.json';
34 36
35 37 if (file_exists($splashscreenJson)) {
36 - @unlink($splashscreenJson);
38 + acym_deleteFile($splashscreenJson);
37 39 }
38 40 }
39 41 }
40 42
@@ -57,9 +59,9 @@
57 59 $res = null;
58 60 }
59 61
60 62 if ($res === null) {
61 - $message = isset($e) ? $e->getMessage() : substr(strip_tags(acym_getDBError()), 0, 200).'...';
63 + $message = isset($e) ? $e->getMessage() : substr(acym_stripTags(acym_getDBError()), 0, 200).'...';
62 64
63 65 if ($messageType === 'enqueue') {
64 66 acym_enqueueMessage($message, 'error');
65 67 } elseif ($messageType === 'display') {