Skip to content

Commit 1f91041

Browse files
committed
fix: plugin deletion issue fixed
1 parent c3182ee commit 1f91041

File tree

6 files changed

+29
-26
lines changed

6 files changed

+29
-26
lines changed

backend/app/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Config
2121

2222
public const VAR_PREFIX = 'bit_smtp_';
2323

24-
public const VERSION = '1.1.4';
24+
public const VERSION = '1.1.5';
2525

2626
public const DB_VERSION = '1.0';
2727

backend/app/Providers/InstallerProvider.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,33 +75,33 @@ public static function registerUninstaller($networkWide)
7575
public static function migration()
7676
{
7777
$migrations = [
78-
'BSPluginOptions',
78+
'BitSmtpPluginOptions',
7979
];
8080

8181
return [
8282
'path' => Config::get('BASEDIR')
83-
. DIRECTORY_SEPARATOR
84-
. 'db'
85-
. DIRECTORY_SEPARATOR
86-
. 'Migrations'
87-
. DIRECTORY_SEPARATOR,
83+
. DIRECTORY_SEPARATOR
84+
. 'db'
85+
. DIRECTORY_SEPARATOR
86+
. 'Migrations'
87+
. DIRECTORY_SEPARATOR,
8888
'migrations' => $migrations,
8989
];
9090
}
9191

9292
public static function drop()
9393
{
9494
$migrations = [
95-
'BSPluginOptions',
95+
'BitSmtpPluginOptions',
9696
];
9797

9898
return [
9999
'path' => Config::get('BASEDIR')
100-
. DIRECTORY_SEPARATOR
101-
. 'db'
102-
. DIRECTORY_SEPARATOR
103-
. 'Migrations'
104-
. DIRECTORY_SEPARATOR,
100+
. DIRECTORY_SEPARATOR
101+
. 'db'
102+
. DIRECTORY_SEPARATOR
103+
. 'Migrations'
104+
. DIRECTORY_SEPARATOR,
105105
'migrations' => $migrations,
106106
];
107107
}

backend/db/Migrations/BSPluginOptions.php renamed to backend/db/Migrations/BitSmtpPluginOptions.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

33
use BitApps\SMTP\Config;
4+
use BitApps\SMTP\Deps\BitApps\WPDatabase\Connection as DB;
45
use BitApps\SMTP\Deps\BitApps\WPKit\Migration\Migration;
5-
use BitApps\WPDatabase\Connection as DB;
66

77
if (!\defined('ABSPATH')) {
88
exit;
99
}
1010

11-
final class BSPluginOptions extends Migration
11+
final class BitSmtpPluginOptions extends Migration
1212
{
1313
public function up()
1414
{
@@ -32,15 +32,15 @@ public function down()
3232
DB::query(
3333
DB::prepare(
3434
'DELETE FROM `' . DB::wpPrefix() . 'options` WHERE option_name in ('
35-
. implode(
36-
',',
37-
array_map(
38-
function () {
39-
return '%s';
40-
},
41-
$pluginOptions
42-
)
43-
) . ')',
35+
. implode(
36+
',',
37+
array_map(
38+
function () {
39+
return '%s';
40+
},
41+
$pluginOptions
42+
)
43+
) . ')',
4444
$pluginOptions
4545
)
4646
);

bit_smtp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: BIT SMTP
55
* Plugin URI: https://www.bitapps.pro/bit-smtp
66
* Description: Send email via SMTP using BIT SMTP plugin by Bit Apps
7-
* Version: 1.1.4
7+
* Version: 1.1.5
88
* Author: Bit Apps
99
* Author URI: https://bitapps.pro
1010
* Text Domain: bit-smtp
-53.1 KB
Loading

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: smtp, wp mail smtp, gmail smtp, sendgrid smtp, phpmailer
44
Requires at least: 5.0
55
Tested up to: 6.6
66
Requires PHP: 7.4
7-
Stable tag: 1.1.4
7+
Stable tag: 1.1.5
88
License: GPLv2 or later
99

1010
Enable SMTP plugin to authenticate mail service of your site by configuring SMTP server of your desired mail service.
@@ -241,6 +241,9 @@ Yes, possible to send WordPress emails using Hotmail.
241241

242242
== Changelog ==
243243

244+
= 1.1.5 (05 Nov, 2024) =
245+
* Plugin deletion issue fixed
246+
244247
= 1.1.4 (02 Nov, 2024) =
245248
* Bit Social promotional banner updated
246249
* Telemetry package version updated

0 commit comments

Comments
 (0)