Plugin Directory

Changeset 3429207


Ignore:
Timestamp:
12/29/2025 04:28:15 PM (7 weeks ago)
Author:
manovermachine
Message:

Release 1.3.17: Fix EventBridge scheduler triggering when auto-posting disabled

Location:
weather-write/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • weather-write/trunk/includes/class-aws-scheduler.php

    r3424044 r3429207  
    4242        }
    4343
    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'] )
    4548            ? array_values( array_filter( array_map( 'strval', $options['auto_times'] ) ) )
    4649            : [];
  • weather-write/trunk/includes/class-scheduler.php

    r3424988 r3429207  
    314314        } catch ( \Throwable $e ) { /* ignore webhook failures */ }
    315315        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
    321318            return new WP_Error( 'wwrt_disabled', 'Auto-posting is disabled.' );
    322319        }
  • weather-write/trunk/readme.txt

    r3424988 r3429207  
    44Requires at least: 6.5
    55Tested up to: 6.8
    6 Stable tag: 1.3.16
     6Stable tag: 1.3.17
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8787
    8888== 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
    8996
    9097= 1.3.16 =
  • weather-write/trunk/weather-write.php

    r3424988 r3429207  
    33 * Plugin Name: Weather Write
    44 * Description: Generate and publish weather-aware posts with summaries, charts, images, alerts, SEO, and more — fully automated or on-demand.
    5  * Version: 1.3.16
     5 * Version: 1.3.17
    66 * Author: Mike Freeman - WeatherWrite
    77 * Plugin URI: https://www.weatherwrite.com/
Note: See TracChangeset for help on using the changeset viewer.