v2.2.5
This commit is contained in:
parent
97ed06ef72
commit
d611209171
5 changed files with 35 additions and 10 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
= 2.2.5 =
|
||||||
|
|
||||||
|
* CRITICAL FIX: Worker now loads plugin manually in DOING_CRON context
|
||||||
|
* FIXED: "Newsletter SMTP plugin is not active" error in worker script
|
||||||
|
* IMPROVED: Worker compatibility with all WordPress environments including MultiSite
|
||||||
|
|
||||||
= 2.2.4 =
|
= 2.2.4 =
|
||||||
|
|
||||||
* CRITICAL FIX: Speed calculation now uses actual NEWSLETTER_CRON_INTERVAL value
|
* CRITICAL FIX: Speed calculation now uses actual NEWSLETTER_CRON_INTERVAL value
|
||||||
|
|
|
||||||
10
readme.txt
10
readme.txt
|
|
@ -4,7 +4,7 @@ Tags: newsletter, smtp, email, bulk, queue, worker, amazonses, statistics
|
||||||
Requires at least: 4.7
|
Requires at least: 4.7
|
||||||
Tested up to: 6.9
|
Tested up to: 6.9
|
||||||
Requires PHP: 7.2
|
Requires PHP: 7.2
|
||||||
Stable tag: 2.2.4
|
Stable tag: 2.2.5
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
|
|
@ -141,6 +141,11 @@ Yes. The plugin integrates with ROBOTSTXT SMTP rate limiting system to ensure yo
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 2.2.5 =
|
||||||
|
* CRITICAL FIX: Worker now loads plugin manually in DOING_CRON context
|
||||||
|
* FIXED: "Newsletter SMTP plugin is not active" error in worker script
|
||||||
|
* IMPROVED: Worker compatibility with all WordPress environments including MultiSite
|
||||||
|
|
||||||
= 2.2.4 =
|
= 2.2.4 =
|
||||||
* CRITICAL FIX: Speed calculation now uses actual NEWSLETTER_CRON_INTERVAL value
|
* CRITICAL FIX: Speed calculation now uses actual NEWSLETTER_CRON_INTERVAL value
|
||||||
* FIXED: Batch_size was being divided by 5 due to incorrect cron interval assumption
|
* FIXED: Batch_size was being divided by 5 due to incorrect cron interval assumption
|
||||||
|
|
@ -191,6 +196,9 @@ Yes. The plugin integrates with ROBOTSTXT SMTP rate limiting system to ensure yo
|
||||||
|
|
||||||
== Upgrade Notice ==
|
== Upgrade Notice ==
|
||||||
|
|
||||||
|
= 2.2.5 =
|
||||||
|
CRITICAL: Fixed worker script not loading plugin in DOING_CRON context. Essential for worker functionality.
|
||||||
|
|
||||||
= 2.2.4 =
|
= 2.2.4 =
|
||||||
CRITICAL: Fixed speed calculation to work with any Newsletter cron interval. Resolves batch_size division issues.
|
CRITICAL: Fixed speed calculation to work with any Newsletter cron interval. Resolves batch_size division issues.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: Newsletter - SMTP (by ROBOTSTXT)
|
* Plugin Name: Newsletter - SMTP (by ROBOTSTXT)
|
||||||
* Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-smtp-newsletter
|
* Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-smtp-newsletter
|
||||||
* Description: Integrates ROBOTSTXT SMTP configuration with Newsletter plugin for efficient bulk email delivery with database-backed queue and external workers.
|
* Description: Integrates ROBOTSTXT SMTP configuration with Newsletter plugin for efficient bulk email delivery with database-backed queue and external workers.
|
||||||
* Version: 2.2.4
|
* Version: 2.2.5
|
||||||
* Requires at least: 4.7
|
* Requires at least: 4.7
|
||||||
* Requires PHP: 7.2
|
* Requires PHP: 7.2
|
||||||
* Security: robotstxt@robotstxt.es
|
* Security: robotstxt@robotstxt.es
|
||||||
|
|
@ -25,7 +25,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Plugin constants.
|
// Plugin constants.
|
||||||
define( 'ROBOTSTXT_SMTP_NEWSLETTER_VERSION', '2.2.4' );
|
define( 'ROBOTSTXT_SMTP_NEWSLETTER_VERSION', '2.2.5' );
|
||||||
define( 'ROBOTSTXT_SMTP_NEWSLETTER_FILE', __FILE__ );
|
define( 'ROBOTSTXT_SMTP_NEWSLETTER_FILE', __FILE__ );
|
||||||
define( 'ROBOTSTXT_SMTP_NEWSLETTER_PATH', plugin_dir_path( __FILE__ ) );
|
define( 'ROBOTSTXT_SMTP_NEWSLETTER_PATH', plugin_dir_path( __FILE__ ) );
|
||||||
define( 'ROBOTSTXT_SMTP_NEWSLETTER_URL', plugin_dir_url( __FILE__ ) );
|
define( 'ROBOTSTXT_SMTP_NEWSLETTER_URL', plugin_dir_url( __FILE__ ) );
|
||||||
|
|
|
||||||
10
update.json
10
update.json
File diff suppressed because one or more lines are too long
15
worker.php
15
worker.php
|
|
@ -74,9 +74,20 @@ if ( ! file_exists( $wp_load_path ) ) {
|
||||||
|
|
||||||
require_once $wp_load_path;
|
require_once $wp_load_path;
|
||||||
|
|
||||||
// Verify plugin is active.
|
// Load plugin if not already loaded (happens in DOING_CRON context)
|
||||||
if ( ! defined( 'ROBOTSTXT_SMTP_NEWSLETTER_VERSION' ) ) {
|
if ( ! defined( 'ROBOTSTXT_SMTP_NEWSLETTER_VERSION' ) ) {
|
||||||
fwrite( STDERR, "Error: Newsletter SMTP plugin is not active\n" );
|
$plugin_file = __DIR__ . '/robotstxt-smtp-newsletter.php';
|
||||||
|
if ( file_exists( $plugin_file ) ) {
|
||||||
|
require_once $plugin_file;
|
||||||
|
} else {
|
||||||
|
fwrite( STDERR, "Error: Newsletter SMTP plugin file not found\n" );
|
||||||
|
exit( 1 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verify plugin loaded successfully
|
||||||
|
if ( ! defined( 'ROBOTSTXT_SMTP_NEWSLETTER_VERSION' ) ) {
|
||||||
|
fwrite( STDERR, "Error: Newsletter SMTP plugin could not be loaded\n" );
|
||||||
exit( 1 );
|
exit( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue