Skip to content

Commit

Permalink
fix: plugin deletion issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MdSoikot committed Nov 5, 2024
1 parent c3182ee commit 1f91041
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 26 deletions.
2 changes: 1 addition & 1 deletion backend/app/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Config

public const VAR_PREFIX = 'bit_smtp_';

public const VERSION = '1.1.4';
public const VERSION = '1.1.5';

public const DB_VERSION = '1.0';

Expand Down
24 changes: 12 additions & 12 deletions backend/app/Providers/InstallerProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,33 +75,33 @@ public static function registerUninstaller($networkWide)
public static function migration()
{
$migrations = [
'BSPluginOptions',
'BitSmtpPluginOptions',
];

return [
'path' => Config::get('BASEDIR')
. DIRECTORY_SEPARATOR
. 'db'
. DIRECTORY_SEPARATOR
. 'Migrations'
. DIRECTORY_SEPARATOR,
. DIRECTORY_SEPARATOR
. 'db'
. DIRECTORY_SEPARATOR
. 'Migrations'
. DIRECTORY_SEPARATOR,
'migrations' => $migrations,
];
}

public static function drop()
{
$migrations = [
'BSPluginOptions',
'BitSmtpPluginOptions',
];

return [
'path' => Config::get('BASEDIR')
. DIRECTORY_SEPARATOR
. 'db'
. DIRECTORY_SEPARATOR
. 'Migrations'
. DIRECTORY_SEPARATOR,
. DIRECTORY_SEPARATOR
. 'db'
. DIRECTORY_SEPARATOR
. 'Migrations'
. DIRECTORY_SEPARATOR,
'migrations' => $migrations,
];
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

use BitApps\SMTP\Config;
use BitApps\SMTP\Deps\BitApps\WPDatabase\Connection as DB;
use BitApps\SMTP\Deps\BitApps\WPKit\Migration\Migration;
use BitApps\WPDatabase\Connection as DB;

if (!\defined('ABSPATH')) {
exit;
}

final class BSPluginOptions extends Migration
final class BitSmtpPluginOptions extends Migration
{
public function up()
{
Expand All @@ -32,15 +32,15 @@ public function down()
DB::query(
DB::prepare(
'DELETE FROM `' . DB::wpPrefix() . 'options` WHERE option_name in ('
. implode(
',',
array_map(
function () {
return '%s';
},
$pluginOptions
)
) . ')',
. implode(
',',
array_map(
function () {
return '%s';
},
$pluginOptions
)
) . ')',
$pluginOptions
)
);
Expand Down
2 changes: 1 addition & 1 deletion bit_smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: BIT SMTP
* Plugin URI: https://www.bitapps.pro/bit-smtp
* Description: Send email via SMTP using BIT SMTP plugin by Bit Apps
* Version: 1.1.4
* Version: 1.1.5
* Author: Bit Apps
* Author URI: https://bitapps.pro
* Text Domain: bit-smtp
Expand Down
Binary file modified frontend/src/resource/img/exclusiveEarlyBirdOffer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: smtp, wp mail smtp, gmail smtp, sendgrid smtp, phpmailer
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.1.4
Stable tag: 1.1.5
License: GPLv2 or later

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

== Changelog ==

= 1.1.5 (05 Nov, 2024) =
* Plugin deletion issue fixed

= 1.1.4 (02 Nov, 2024) =
* Bit Social promotional banner updated
* Telemetry package version updated
Expand Down

0 comments on commit 1f91041

Please sign in to comment.