Changeset 3429207
- Timestamp:
- 12/29/2025 04:28:15 PM (7 weeks ago)
- Location:
- weather-write/trunk
- Files:
-
- 4 edited
-
includes/class-aws-scheduler.php (modified) (1 diff)
-
includes/class-scheduler.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
weather-write.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
weather-write/trunk/includes/class-aws-scheduler.php
r3424044 r3429207 42 42 } 43 43 44 $times = isset( $options['auto_times'] ) && is_array( $options['auto_times'] ) 44 // Check if scheduling is enabled - if not, send empty times to delete all EventBridge rules 45 $auto_enabled = ! empty( $options['auto_enabled'] ); 46 47 $times = $auto_enabled && isset( $options['auto_times'] ) && is_array( $options['auto_times'] ) 45 48 ? array_values( array_filter( array_map( 'strval', $options['auto_times'] ) ) ) 46 49 : []; -
weather-write/trunk/includes/class-scheduler.php
r3424988 r3429207 314 314 } catch ( \Throwable $e ) { /* ignore webhook failures */ } 315 315 if ( ! $force && empty( $options['auto_enabled'] ) ) { 316 wwrt_log_and_notify( 'disabled', 'Auto-posting is disabled', [ 317 'slot_time' => $slot_time, 318 'location_key' => $location_key, 319 'run_id' => $run_id, 320 ] ); 316 // Auto-posting is disabled - this is not an error, just return silently 317 // EventBridge rules should have been deleted when user unchecked the box 321 318 return new WP_Error( 'wwrt_disabled', 'Auto-posting is disabled.' ); 322 319 } -
weather-write/trunk/readme.txt
r3424988 r3429207 4 4 Requires at least: 6.5 5 5 Tested up to: 6.8 6 Stable tag: 1.3.1 66 Stable tag: 1.3.17 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 87 87 88 88 == Changelog == 89 90 = 1.3.17 = 91 - CRITICAL FIX: Fixed EventBridge scheduler triggering when auto-posting is disabled 92 - Scheduler now properly checks auto_enabled setting before creating EventBridge rules 93 - Sends empty times array to delete all rules when scheduling is disabled 94 - Removed error notifications when auto-posting is intentionally disabled 95 - Prevents unnecessary webhook/email alerts for non-error conditions 89 96 90 97 = 1.3.16 = -
weather-write/trunk/weather-write.php
r3424988 r3429207 3 3 * Plugin Name: Weather Write 4 4 * Description: Generate and publish weather-aware posts with summaries, charts, images, alerts, SEO, and more — fully automated or on-demand. 5 * Version: 1.3.1 65 * Version: 1.3.17 6 6 * Author: Mike Freeman - WeatherWrite 7 7 * Plugin URI: https://www.weatherwrite.com/
Note: See TracChangeset
for help on using the changeset viewer.