Plugin Directory

Changeset 3344179


Ignore:
Timestamp:
08/14/2025 02:01:57 AM (8 months ago)
Author:
themifyme
Message:

update plugin

Location:
themify-event-post
Files:
87 added
5 edited

Legend:

Unmodified
Added
Removed
  • themify-event-post/trunk/includes/functions.php

    r3246718 r3344179  
    123123
    124124        if( $start_date ) {
    125             $stamp = date_create( $start_date, new DateTimeZone( 'UTC' ) )->format( 'U' );
    126             echo '<span class="event-start-date">';
    127             $start_date_parts = explode( ' ', $start_date );
    128             if( $repeat ) {
    129                 echo themify_event_post_get_repeat_date( $repeat, intval( get_post_meta( get_the_id(), 'repeat_x', true ) ), $start_date_parts[0], $start_date_parts[1] );
    130             } else {
    131                 echo '<span class="event-day"> '.date_i18n( $date_format, $stamp ) .'</span> <span class="event-time-at">'. _x( ' @ ', 'Connector between date and time (with spaces around itself) in event date and time.', 'themify-event-post' ) .'</span> <span class="event-time">' . date_i18n( $time_format, $stamp ) .'</span>';
    132             }
    133             echo '</span>';
     125            $stamp = date_create( $start_date, new DateTimeZone( 'UTC' ) );
     126            if ( $stamp ) {
     127                $stamp = $stamp->format( 'U' );
     128                echo '<span class="event-start-date">';
     129                $start_date_parts = explode( ' ', $start_date );
     130                if( $repeat ) {
     131                    echo themify_event_post_get_repeat_date( $repeat, intval( get_post_meta( get_the_id(), 'repeat_x', true ) ), $start_date_parts[0], $start_date_parts[1] );
     132                } else {
     133                    echo '<span class="event-day"> '.date_i18n( $date_format, $stamp ) .'</span> <span class="event-time-at">'. _x( ' @ ', 'Connector between date and time (with spaces around itself) in event date and time.', 'themify-event-post' ) .'</span> <span class="event-time">' . date_i18n( $time_format, $stamp ) .'</span>';
     134                }
     135                echo '</span>';
     136            }
    134137        }
    135138        if( !$hide_event_end && ! $repeat && $end_date ) {
    136             $stamp = date_create( $end_date, new DateTimeZone( 'UTC' ) )->format( 'U' );
    137             echo '<span class="event-end-date">';
    138             $end_date_parts = explode( ' ', $end_date );
    139             echo ! isset( $start_date_parts ) || $start_date_parts[0] != $end_date_parts[0] ?'<span class="event-date-separator">'. _x( ' - ', 'Character to provide a hint that this is the event end date and time.', 'themify-event-post' ) .'</span>
    140                     <span class="event-day">' . date_i18n( $date_format, $stamp ) .'</span>' :' <span class="event-date-separator"> - </span>';
    141             if ( isset( $start_date_parts[0] ) && $start_date_parts[0] != $end_date_parts[0] ) {
    142                 echo '<span class="event-time-at">'. _x( ' @ ', 'Connector between date and time (with spaces around itself) in event date and time.', 'themify-event-post' ).'</span>';
    143             }
    144             echo '<span class="event-time">' . date_i18n( $time_format, $stamp ) . '</span>';
    145             echo '</span>';
     139            $stamp = date_create( $end_date, new DateTimeZone( 'UTC' ) );
     140            if ( $stamp ) {
     141                $stamp = $stamp->format( 'U' );
     142                echo '<span class="event-end-date">';
     143                $end_date_parts = explode( ' ', $end_date );
     144                echo ! isset( $start_date_parts ) || $start_date_parts[0] != $end_date_parts[0] ?'<span class="event-date-separator">'. _x( ' - ', 'Character to provide a hint that this is the event end date and time.', 'themify-event-post' ) .'</span>
     145                        <span class="event-day">' . date_i18n( $date_format, $stamp ) .'</span>' :' <span class="event-date-separator"> - </span>';
     146                if ( isset( $start_date_parts[0] ) && $start_date_parts[0] != $end_date_parts[0] ) {
     147                    echo '<span class="event-time-at">'. _x( ' @ ', 'Connector between date and time (with spaces around itself) in event date and time.', 'themify-event-post' ).'</span>';
     148                }
     149                echo '<span class="event-time">' . date_i18n( $time_format, $stamp ) . '</span>';
     150                echo '</span>';
     151            }
    146152        }
    147153
  • themify-event-post/trunk/includes/themify-metabox/includes/themify-metabox-core.php

    r3037797 r3344179  
    560560        if ( isset( $_FILES['file'] ) ) {
    561561            $fileContent = themify_get_file_contents( $_FILES['file']['tmp_name'] );
    562             $new_data = unserialize( $fileContent );
     562            $new_data = unserialize( $fileContent , ['allowed_classes' => false] );
    563563            if ( $new_data !== null ) {
    564564                if ( 'colors' === $_POST['type'] ) {
  • themify-event-post/trunk/readme.txt

    r3246718 r3344179  
    44Tags: event, post, date, post-type
    55Requires at least: 5.2
    6 Tested up to: 6.7.2
    7 Stable tag: 1.3.3
     6Tested up to: 6.8.2
     7Stable tag: 1.3.4
    88License: GPL v2
    99License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  • themify-event-post/trunk/themify-event-post.php

    r3246718 r3344179  
    33Plugin Name:  Themify Event Post
    44Plugin URI:   https://themify.me/event-post
    5 Version:      1.3.3
     5Version:      1.3.4
    66Author:       Themify
    77Author URI:   https://themify.me
     
    4545        'url' => trailingslashit( plugin_dir_url( __FILE__ ) ),
    4646        'dir' => trailingslashit( plugin_dir_path( __FILE__ ) ),
    47         'version' => '1.3.3'
     47        'version' => '1.3.4'
    4848    ) );
    4949}
Note: See TracChangeset for help on using the changeset viewer.