Changeset 3423985
- Timestamp:
- 12/19/2025 09:35:06 PM (3 months ago)
- Location:
- weather-write/trunk
- Files:
-
- 4 edited
-
includes/class-rest.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-rest.php
r3423974 r3423985 85 85 $time = ''; 86 86 $body_params = $request->get_json_params(); 87 88 // DEBUG: Log what we received 89 error_log( 'WeatherWrite REST Trigger - JSON body params: ' . print_r( $body_params, true ) ); 90 error_log( 'WeatherWrite REST Trigger - Query params: ' . print_r( $request->get_query_params(), true ) ); 91 87 92 if ( is_array( $body_params ) && isset( $body_params['time'] ) ) { 88 93 $time = sanitize_text_field( (string) $body_params['time'] ); 94 error_log( 'WeatherWrite REST Trigger - Time from JSON body: ' . $time ); 89 95 } 90 96 // Fallback to query string/URL params if not in body 91 97 if ( empty( $time ) ) { 92 98 $time = sanitize_text_field( (string) $request->get_param( 'time' ) ); 99 error_log( 'WeatherWrite REST Trigger - Time from query/URL params: ' . $time ); 93 100 } 101 102 error_log( 'WeatherWrite REST Trigger - Final time parameter: ' . ( $time ?: '(empty)' ) ); 94 103 95 104 // Trigger the post generation directly -
weather-write/trunk/includes/class-scheduler.php
r3423968 r3423985 516 516 if ( is_string( $hm ) && $hm !== '' && isset( $options['auto_times'] ) && is_array( $options['auto_times'] ) ) { 517 517 $times = array_values( array_map( 'strval', $options['auto_times'] ) ); 518 error_log( 'WeatherWrite Tag Lookup - Received time: ' . $hm ); 519 error_log( 'WeatherWrite Tag Lookup - Available times: ' . print_r( $times, true ) ); 518 520 $idx = array_search( $hm, $times, true ); 521 error_log( 'WeatherWrite Tag Lookup - Found index: ' . ( $idx !== false ? $idx : 'NOT FOUND' ) ); 519 522 if ( false !== $idx && isset( $options['auto_time_tags'][ $idx ] ) && is_array( $options['auto_time_tags'][ $idx ] ) ) { 523 error_log( 'WeatherWrite Tag Lookup - Tags for this time: ' . print_r( $options['auto_time_tags'][ $idx ], true ) ); 520 524 $merge_lists[] = $options['auto_time_tags'][ $idx ]; 521 } 525 } else { 526 error_log( 'WeatherWrite Tag Lookup - No tags found for this time slot' ); 527 } 528 } else { 529 error_log( 'WeatherWrite Tag Lookup - Time parameter validation failed. hm: ' . var_export( $hm, true ) ); 522 530 } 523 531 // Legacy schedule-wide tags (deprecated in UI but still honored if present) -
weather-write/trunk/readme.txt
r3423974 r3423985 4 4 Requires at least: 6.5 5 5 Tested up to: 6.8 6 Stable tag: 1.3.1 06 Stable tag: 1.3.11 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.11 = 91 - DEBUG: Added comprehensive logging to trace time parameter and tag lookup 92 - Helps diagnose why schedule-specific tags may not be applied 93 - Temporary debug version - will be removed once issue is resolved 89 94 90 95 = 1.3.10 = -
weather-write/trunk/weather-write.php
r3423974 r3423985 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 05 * Version: 1.3.11 6 6 * Author: Mike Freeman - WeatherWrite 7 7 * Plugin URI: https://www.weatherwrite.com/
Note: See TracChangeset
for help on using the changeset viewer.