Skip to content

Commit 1df628c

Browse files
committed
version 2.0.8 released
1 parent 5186e44 commit 1df628c

File tree

1,852 files changed

+249
-5687
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,852 files changed

+249
-5687
lines changed

README.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: wordpress smtp,wordpress email log,smtp
44
Requires at least: 5.3
55
Requires PHP: 8.2
66
Tested up to: 6.8
7-
Stable tag: 2.0.7
7+
Stable tag: 2.0.8
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -117,6 +117,10 @@ e.g.
117117

118118

119119
== Changelog ==
120+
= 2.0.8 =
121+
* [updated] PHP version compatibility check
122+
* [new] Pro addon V1.0.6 released
123+
120124
= 2.0.7 =
121125
* [updated] WordPress Core V6.8 compatible
122126
* [new] Pro addon V1.0.5 released

cbxwpemaillogger.php

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin Name: Comfort Email SMTP, Logger & Email Api
1717
* Plugin URI: https://codeboxr.com/product/cbx-email-logger-for-wordpress/
1818
* Description: Various SMTP protocol, Logs email, tracks sent or failed status and more.
19-
* Version: 2.0.7
19+
* Version: 2.0.8
2020
* Requires at least: 5.3
2121
* Requires PHP: 8.2
2222
* Author: Codeboxr
@@ -35,11 +35,14 @@
3535
}
3636

3737
defined( 'COMFORTSMTP_PLUGIN_NAME' ) or define( 'COMFORTSMTP_PLUGIN_NAME', 'cbxwpemaillogger' );
38-
defined( 'COMFORTSMTP_PLUGIN_VERSION' ) or define( 'COMFORTSMTP_PLUGIN_VERSION', '2.0.7' );
38+
defined( 'COMFORTSMTP_PLUGIN_VERSION' ) or define( 'COMFORTSMTP_PLUGIN_VERSION', '2.0.8' );
3939
defined( 'COMFORTSMTP_BASE_NAME' ) or define( 'COMFORTSMTP_BASE_NAME', plugin_basename( __FILE__ ) );
4040
defined( 'COMFORTSMTP_ROOT_PATH' ) or define( 'COMFORTSMTP_ROOT_PATH', plugin_dir_path( __FILE__ ) );
4141
defined( 'COMFORTSMTP_ROOT_URL' ) or define( 'COMFORTSMTP_ROOT_URL', plugin_dir_url( __FILE__ ) );
4242

43+
defined( 'COMFORTSMTP_WP_MIN_VERSION' ) or define( 'COMFORTSMTP_WP_MIN_VERSION', '5.3' );
44+
defined( 'COMFORTSMTP_PHP_MIN_VERSION' ) or define( 'COMFORTSMTP_PHP_MIN_VERSION', '8.2' );
45+
4346

4447
defined( 'CBX_DEBUG' ) or define( 'CBX_DEBUG', false );
4548
defined( 'COMFORTSMTP_DEV_MODE' ) or define( 'COMFORTSMTP_DEV_MODE', CBX_DEBUG );
@@ -55,7 +58,9 @@
5558
*
5659
* @return bool
5760
*/
58-
function comfortsmtp_compatible_wp_version( $version = '5.3' ) {
61+
function comfortsmtp_compatible_wp_version( $version = '' ) {
62+
if($version == '') $version = COMFORTSMTP_WP_MIN_VERSION;
63+
5964
if ( version_compare( $GLOBALS['wp_version'], $version, '<' ) ) {
6065
return false;
6166
}
@@ -70,8 +75,10 @@ function comfortsmtp_compatible_wp_version( $version = '5.3' ) {
7075
*
7176
* @return bool
7277
*/
73-
function comfortsmtp_compatible_php_version( $version = '8.2' ) {
74-
if ( version_compare( PHP_VERSION, $version, '<=' ) ) {
78+
function comfortsmtp_compatible_php_version( $version = '' ) {
79+
if($version == '') $version = COMFORTSMTP_PHP_MIN_VERSION;
80+
81+
if ( version_compare( PHP_VERSION, $version, '<' ) ) {
7582
return false;
7683
}
7784

@@ -82,24 +89,31 @@ function comfortsmtp_compatible_php_version( $version = '8.2' ) {
8289
* The code that runs during plugin activation.
8390
*/
8491
function activate_comfortsmtp() {
85-
$wp_version = '5.3';
86-
$php_version = '8.2';
92+
$wp_version = COMFORTSMTP_WP_MIN_VERSION;
93+
$php_version = COMFORTSMTP_PHP_MIN_VERSION;
94+
95+
$activate_ok = true;
8796

8897
if ( ! comfortsmtp_compatible_wp_version( $wp_version ) ) {
98+
$activate_ok = false;
99+
89100
deactivate_plugins( plugin_basename( __FILE__ ) );
90101
/* Translators: WordPress Version */
91102
wp_die( sprintf( esc_html__( 'Comfort form plugin requires WordPress %s or higher!', 'cbxwpemaillogger' ), esc_html($wp_version) ) );
92103
}
93104

94105
if ( ! comfortsmtp_compatible_php_version( $php_version ) ) {
106+
$activate_ok = false;
107+
95108
deactivate_plugins( plugin_basename( __FILE__ ) );
96109
/* Translators: PHP Version */
97110
wp_die( sprintf( esc_html__( 'Comfort form plugin requires PHP %s or higher!', 'cbxwpemaillogger' ), esc_html($php_version) ) );
98111
}
99112

100-
ComfortSmtpHelpers::load_orm();
101-
102-
ComfortSmtpHelpers::activate();
113+
if($activate_ok){
114+
ComfortSmtpHelpers::load_orm();
115+
ComfortSmtpHelpers::activate();
116+
}
103117
}//end function activate_comfortsmtp
104118

105119
register_activation_hook( __FILE__, 'activate_comfortsmtp' );

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"description": "Various SMTP protocol, Logs email, tracks sent or failed status and more",
44
"type": "library",
55
"license": "MIT",
6-
"config": {
7-
"vendor-dir": "lib"
8-
},
96
"autoload": {
107
"psr-4": {
118
"Comfort\\Crm\\Smtp\\": "includes/"

0 commit comments

Comments
 (0)