Plugin Directory

Changeset 3290104


Ignore:
Timestamp:
05/08/2025 06:33:15 PM (10 months ago)
Author:
ashanjay
Message:

2.4.4 (2025-5-8)

FIXED: language translations not saving or erasing values

Location:
eventon-lite
Files:
299 added
5 edited

Legend:

Unmodified
Added
Removed
  • eventon-lite/trunk/eventon.php

    r3288092 r3290104  
    44 * Plugin URI: http://www.myeventon.com/lite
    55 * Description: A beautifully crafted minimal calendar experience - Lite Version
    6  * Version: 2.4.3
     6 * Version: 2.4.4
    77 * Author: Ashan Jay
    88 * Author URI: http://www.ashanjay.com
  • eventon-lite/trunk/includes/admin/class-admin-ajax.php

    r3288092 r3290104  
    10721072                if( $current_tab == 'evcal_2'):
    10731073                    $_lang_version = (!empty($_POST['lang']))? sanitize_text_field($_POST['lang']): 'L1';
     1074                    $sanitized_form_data = array();
    10741075
    10751076                    // Process duplicates and sanitize each value
    1076                     foreach ($form_data as $item) {
     1077                    foreach ($form_data as $itemkey => $itemvalue ) {
    10771078                        // skip saving unnecessary text
    10781079                        if( in_array($itemkey, array('action','option_page','_wp_http_referer','_wpnonce','evcal_noncename','evo_current_lang','evo_translated_text'))) continue;
  • eventon-lite/trunk/includes/admin/post_types/class-meta_boxes-timedate.php

    r3288092 r3290104  
    485485
    486486                    $DD = new DateTime( 'now', EVO()->calendar->timezone0);
    487                     $repeat_times = (unserialize($ev_vals['repeat_intervals'][0]));                                     
    488                     $date_format_string = $wp_date_format.' '.( $hr24? 'G:i':'h:ia');// datre format sting to display for repeats
    489                    
    490                     foreach($repeat_times as $__key => $rt){
    491 
    492                         if( $__key === 'rgi'|| !isset( $rt[0] )) continue;
     487                    $intervals = $EVENT->get_repeats();
     488                    if($intervals && sizeof($intervals)>0 ):                                   
     489                        $date_format_string = $wp_date_format.' '.( $hr24? 'G:i':'h:ia');// datre format sting to display for repeats
    493490                       
    494                         $DD->setTimestamp((int)$rt[0]);
    495                         $start_unix = $DD->format('U');
    496                         $start_dt = $DD->format($date_format_string);
    497 
    498                         $DD->setTimestamp((int)$rt[1]);
    499                         $end_unix = $DD->format('U');
    500                         $end_dt = $DD->format($date_format_string);
    501 
    502 
    503                         echo '<li data-cnt="'.esc_attr($count).'" style="display:'.(( $count>3)?'none':'flex').'" class="'.($count==0?'initial':'').($count>3?' over':'').'">'. ($count==0? '<dd>'.esc_html__('Initial','eventon').'</dd>':'') . '<i>'.$count.'</i><span>'.esc_html__('from','eventon').'</span> '. esc_attr($start_dt) .' <span class="e">End</span> '. esc_attr($end_dt) .'<em alt="Delete">x</em>
    504                         <input type="hidden" name="repeat_intervals['.esc_attr($count).'][0]" value="'.esc_attr($start_unix).'"/><input type="hidden" name="repeat_intervals['.esc_attr($count).'][1]" value="'.esc_attr($end_unix).'"/></li>';
    505                         $count++;
    506                     }                               
     491                        foreach( $intervals as $__key=>$rt):
     492
     493                            if( $__key === 'rgi'|| !isset( $rt[0] )) continue;
     494                           
     495                            $DD->setTimestamp((int)$rt[0]);
     496                            $start_unix = $DD->format('U');
     497                            $start_dt = $DD->format($date_format_string);
     498
     499                            $DD->setTimestamp((int)$rt[1]);
     500                            $end_unix = $DD->format('U');
     501                            $end_dt = $DD->format($date_format_string);
     502
     503
     504                            echo '<li data-cnt="'.esc_attr($count).'" style="display:'.(( $count>3)?'none':'flex').'" class="'.($count==0?'initial':'').($count>3?' over':'').'">'. ($count==0? '<dd>'.esc_html__('Initial','eventon').'</dd>':'') . '<i>'.$count.'</i><span>'.esc_html__('from','eventon').'</span> '. esc_attr($start_dt) .' <span class="e">End</span> '. esc_attr($end_dt) .'<em alt="Delete">x</em>
     505                            <input type="hidden" name="repeat_intervals['.esc_attr($count).'][0]" value="'.esc_attr($start_unix).'"/><input type="hidden" name="repeat_intervals['.esc_attr($count).'][1]" value="'.esc_attr($end_unix).'"/></li>';
     506                            $count++;
     507                        endforeach;
     508                    endif;                         
    507509                }
    508510                echo "</ul>";
  • eventon-lite/trunk/includes/class-eventon.php

    r3288092 r3290104  
    22/**
    33 * EventON Lite Setup
    4  * @version 2.4.3
     4 * @version 2.4.4
    55 *
    66 */
     
    1212
    1313    // defines
    14         public $version = '2.4.3';
     14        public $version = '2.4.4';
    1515               
    1616        public $template_url;
  • eventon-lite/trunk/readme.txt

    r3288092 r3290104  
    66Requires at least: 6.0
    77Tested up to: 6.8.1
    8 Stable tag: 2.4.3
     8Stable tag: 2.4.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    238238
    239239== Changelog ==
     240= 2.4.4 (2025-5-8) =
     241FIXED: language translations not saving or erasing values
     242
    240243= 2.4.3 (2025-5-5) =
    241244ADDED: OpenAI support for AI features
Note: See TracChangeset for help on using the changeset viewer.