Plugin Directory

Changeset 3419512


Ignore:
Timestamp:
12/14/2025 06:39:02 PM (4 months ago)
Author:
spellhammer
Message:

Update to version 1.3.0.3 from GitHub

Location:
pie-calendar
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pie-calendar/tags/1.3.0.3/includes/block.php

    r3391964 r3419512  
    257257            "type" => "listMonth",
    258258            "duration" => [
    259                 "months" => isset( $_GET['duration'] ) ? intval( $_GET['duration'] ) : 2
     259                "months" => isset( $_GET['duration'] ) ? absint( $_GET['duration'] ) : 2
    260260            ],
    261261            "customProps" => [
  • pie-calendar/tags/1.3.0.3/includes/js/piecal.js

    r3391964 r3419512  
    7272        Alpine.store("calendarEngine").eventStart = info.event.start;
    7373        Alpine.store("calendarEngine").eventEnd = info.event.end;
    74         Alpine.store("calendarEngine").eventDetails = info.event._def.extendedProps.details;
     74        Alpine.store("calendarEngine").eventDetails = info.event._def.extendedProps.details ?? '';
    7575        Alpine.store("calendarEngine").eventUrl = info.event._def.extendedProps.permalink;
    7676        Alpine.store("calendarEngine").eventAllDay = info.event.allDay;
  • pie-calendar/tags/1.3.0.3/includes/piecal-info-shortcode.php

    r3371799 r3419512  
    3535    if( isset( $_GET['timezone'] ) && apply_filters('piecal_use_adaptive_timezones', false) ) {
    3636        /* Translators: This string is for displaying the viewer's time zone via the Pie Calendar Info shortcode */
    37         $timezone =  __( 'Event times are listed in your local time zone: ', 'piecal' ) . $_GET['timezone'];
     37        $timezone =  __( 'Event times are listed in your local time zone: ', 'piecal' ) . sanitize_text_field( $_GET['timezone'] );
    3838    }
    3939
     
    100100        <?php if( empty($allday) && $show_timezone === true && Piecal\Utils\General::foundInArray( ['timezone', 'all'], $atts['fragments'] ?? [] ) ) { ?>
    101101            <p class="piecal-info__timezone">
    102                 <?php echo $timezone; ?>
     102                <?php echo esc_html($timezone); ?>
    103103            </p>
    104104        <?php } ?>
  • pie-calendar/tags/1.3.0.3/includes/shortcode.php

    r3391964 r3419512  
    141141        }
    142142
    143     $eventsArray = apply_filters('piecal_events_array_filter', $eventsArray, $rangeStart = null, $rangeEnd = null, $appendOffset);
     143    $eventsArray = apply_filters('piecal_events_array_filter', $eventsArray, $rangeStart = null, $rangeEnd = null, $appendOffset, $atts);
     144
     145    $eventSources = [
     146        $eventsArray
     147    ];
     148
     149    $eventSources = apply_filters('piecal_event_sources', $eventSources, $rangeStart = null, $rangeEnd = null, $appendOffset, $atts);
    144150
    145151    $eventSources = [
     
    233239    <script>
    234240            let piecalAJAX = {
    235             ajaxURL: "<?php echo admin_url('admin-ajax.php'); ?>",
     241            ajaxURL: "<?php echo esc_url( admin_url('admin-ajax.php') ); ?>",
    236242            ajaxNonce: "<?php echo wp_create_nonce('piecal_ajax_nonce'); ?>"
    237243            }
  • pie-calendar/tags/1.3.0.3/includes/utils/Scripts.php

    r3351250 r3419512  
    8282
    8383                    wp_localize_script( 'piecal-utils', 'piecalVars', [
    84                         'useAdaptiveTimezones' => $useAdaptiveTimezones
     84                        'useAdaptiveTimezones' => $useAdaptiveTimezones,
     85                        'siteTimezoneString' => wp_timezone_string(),
     86                        'siteGMTOffset' => piecal_site_gmt_offset()
    8587                    ] );
    8688                break;
  • pie-calendar/tags/1.3.0.3/includes/utils/Time.php

    r3174521 r3419512  
    112112    // Helper function to get start date from pass-through (URL) or meta key depending on what's available.
    113113    public static function getStartDate() {
    114         $timezoneObj = new DateTimeZone( $_GET['timezone'] ?? wp_timezone_string() );
     114        $tz_string = isset( $_GET['timezone'] ) ? sanitize_text_field( wp_unslash( $_GET['timezone'] ) ) : wp_timezone_string();
     115
     116        if( in_array( $tz_string, timezone_identifiers_list(), true ) ) {
     117            try {
     118                $timezoneObj = new DateTimeZone( $tz_string );
     119            } catch( Exception $e ) {
     120                $timezoneObj = new DateTimeZone( wp_timezone_string() ?: 'UTC' );
     121            }
     122        } else {
     123            $timezoneObj = new DateTimeZone( wp_timezone_string() ?: 'UTC' );
     124        }
     125       
    115126        $startDate = null;
    116127
     
    131142    // Helper function to get end date from pass-through (URL) or meta key depending on what's available.
    132143    public static function getEndDate() {
    133         $timezoneObj = new DateTimeZone( $_GET['timezone'] ?? wp_timezone_string() );
     144        $tz_string = isset( $_GET['timezone'] ) ? sanitize_text_field( wp_unslash( $_GET['timezone'] ) ) : wp_timezone_string();
     145
     146        if( in_array( $tz_string, timezone_identifiers_list(), true ) ) {
     147            try {
     148                $timezoneObj = new DateTimeZone( $tz_string );
     149            } catch( Exception $e ) {
     150                $timezoneObj = new DateTimeZone( wp_timezone_string() ?: 'UTC' );
     151            }
     152        } else {
     153            $timezoneObj = new DateTimeZone( wp_timezone_string() ?: 'UTC' );
     154        }
     155       
    134156        $endDate = null;
    135157
  • pie-calendar/tags/1.3.0.3/languages/piecal.pot

    r3391964 r3419512  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Pie Calendar 1.3.0.2\n"
     5"Project-Id-Version: Pie Calendar 1.3.0.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pie-calendar\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-11-07T20:49:50+00:00\n"
     12"POT-Creation-Date: 2025-12-14T17:32:03+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    4949#. Translators: String for Month - Classic view in view picker dropdown.
    5050#: includes/block.php:223
    51 #: includes/shortcode.php:164
     51#: includes/shortcode.php:170
    5252msgid "Month - Classic"
    5353msgstr ""
     
    5555#. Translators: String for Month - List view in view picker dropdown.
    5656#: includes/block.php:225
    57 #: includes/shortcode.php:166
     57#: includes/shortcode.php:172
    5858msgid "Month - List"
    5959msgstr ""
     
    6161#. Translators: String for Week - Time Grid view in view picker dropdown.
    6262#: includes/block.php:227
    63 #: includes/shortcode.php:168
     63#: includes/shortcode.php:174
    6464msgid "Week - Time Grid"
    6565msgstr ""
     
    6767#. Translators: String for Week - List view in view picker dropdown.
    6868#: includes/block.php:229
    69 #: includes/shortcode.php:170
     69#: includes/shortcode.php:176
    7070msgid "Week - List"
    7171msgstr ""
     
    7878#. Translators: String for Day - List view in view picker dropdown.
    7979#: includes/block.php:233
    80 #: includes/shortcode.php:174
     80#: includes/shortcode.php:180
    8181msgid "Day - List"
    8282msgstr ""
     
    134134#. Translators: This string is for displaying the viewer's time zone via the Pie Calendar Info shortcode
    135135#: includes/piecal-info-shortcode.php:37
    136 #: includes/shortcode.php:560
     136#: includes/shortcode.php:566
    137137msgid "Event times are listed in your local time zone: "
    138138msgstr ""
     
    166166
    167167#. Translators: String for Week - Day Grid view in view picker dropdown.
    168 #: includes/shortcode.php:172
     168#: includes/shortcode.php:178
    169169msgid "Week - Day Grid"
    170170msgstr ""
    171171
    172 #: includes/shortcode.php:439
     172#: includes/shortcode.php:445
    173173msgid "Skip Calendar"
    174174msgstr ""
    175175
    176 #: includes/shortcode.php:451
     176#: includes/shortcode.php:457
    177177msgid "Back to full month view."
    178178msgstr ""
    179179
    180 #: includes/shortcode.php:453
     180#: includes/shortcode.php:459
    181181msgid "Back To Full Month"
    182182msgstr ""
    183183
    184184#. Translators: Label for calendar view chooser.
    185 #: includes/shortcode.php:458
     185#: includes/shortcode.php:464
    186186msgid "Choose View"
    187187msgstr ""
    188188
    189189#. Translators: Label for close button in Pie Calendar popover.
    190 #: includes/shortcode.php:500
     190#: includes/shortcode.php:506
    191191msgid "Close event details"
    192192msgstr ""
    193193
    194194#. Translators: Label for event start date in Pie Calendar popover.
    195 #: includes/shortcode.php:513
     195#: includes/shortcode.php:519
    196196msgid "Starts"
    197197msgstr ""
    198198
    199199#. Translators: Label for event end date in Pie Calendar popover.
    200 #: includes/shortcode.php:522
     200#: includes/shortcode.php:528
    201201msgid "Ends"
    202202msgstr ""
    203203
    204204#. Translators: Label for "View <Post Type>" in Pie Calendar popover.
    205 #: includes/shortcode.php:541
     205#: includes/shortcode.php:547
    206206msgid "View "
    207207msgstr ""
  • pie-calendar/tags/1.3.0.3/plugin.php

    r3391964 r3419512  
    1010 * Plugin URI:        https://piecalendar.com
    1111 * Description:       Turn any post type into a calendar event and display it on a calendar.
    12  * Version:           1.3.0.2
     12 * Version:           1.3.0.3
    1313 * Author:            Elijah Mills & Jonathan Jernigan
    1414 * Author URI:        https://piecalendar.com/about
     
    2626}
    2727
    28 define( 'PIECAL_VERSION', '1.3.0.2' );
     28define( 'PIECAL_VERSION', '1.3.0.3' );
    2929define( 'PIECAL_PATH', plugin_dir_url( __FILE__ ) );
    3030define( 'PIECAL_DIR', plugin_dir_path( __FILE__ ) );
  • pie-calendar/tags/1.3.0.3/readme.txt

    r3391964 r3419512  
    1 === Events Calendar Made Simple - Pie Calendar ===
     1=== Pie Calendar - Events Calendar Made Simple ===
    22Contributors: apexws, spellhammer
    33Tags: events, calendar, event
    44Donate link: https://piecalendar.com
    55Requires at least: 5.9
    6 Tested up to: 6.8.3
     6Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.3.0.2
     8Stable tag: 1.3.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313
    1414== Description ==
    15 **The Most Flexible Events Calendar Plugin for WordPress**
     15**Create an event calendar in less than 4 minutes. Simple, flexible, and light-weight.**
    1616
    1717Pie Calendar lets you effortlessly turn any post on your WordPress site into an event, making it visible on a user-friendly front-end calendar. It doesn't lock you into any post type - use the default WordPress posts or pages, or create your own Custom Post Type (CPT).
     
    8989
    9090== Changelog ==
     91
     92= 1.3.0.3 =
     93* Tweak: Addressed a few minor issues turned up during a security review.
     94* Tweak: Changed readme to comply with .org requirements.
    9195
    9296= 1.3.0.2 =
  • pie-calendar/trunk/includes/block.php

    r3391964 r3419512  
    257257            "type" => "listMonth",
    258258            "duration" => [
    259                 "months" => isset( $_GET['duration'] ) ? intval( $_GET['duration'] ) : 2
     259                "months" => isset( $_GET['duration'] ) ? absint( $_GET['duration'] ) : 2
    260260            ],
    261261            "customProps" => [
  • pie-calendar/trunk/includes/js/piecal.js

    r3391964 r3419512  
    7272        Alpine.store("calendarEngine").eventStart = info.event.start;
    7373        Alpine.store("calendarEngine").eventEnd = info.event.end;
    74         Alpine.store("calendarEngine").eventDetails = info.event._def.extendedProps.details;
     74        Alpine.store("calendarEngine").eventDetails = info.event._def.extendedProps.details ?? '';
    7575        Alpine.store("calendarEngine").eventUrl = info.event._def.extendedProps.permalink;
    7676        Alpine.store("calendarEngine").eventAllDay = info.event.allDay;
  • pie-calendar/trunk/includes/piecal-info-shortcode.php

    r3371799 r3419512  
    3535    if( isset( $_GET['timezone'] ) && apply_filters('piecal_use_adaptive_timezones', false) ) {
    3636        /* Translators: This string is for displaying the viewer's time zone via the Pie Calendar Info shortcode */
    37         $timezone =  __( 'Event times are listed in your local time zone: ', 'piecal' ) . $_GET['timezone'];
     37        $timezone =  __( 'Event times are listed in your local time zone: ', 'piecal' ) . sanitize_text_field( $_GET['timezone'] );
    3838    }
    3939
     
    100100        <?php if( empty($allday) && $show_timezone === true && Piecal\Utils\General::foundInArray( ['timezone', 'all'], $atts['fragments'] ?? [] ) ) { ?>
    101101            <p class="piecal-info__timezone">
    102                 <?php echo $timezone; ?>
     102                <?php echo esc_html($timezone); ?>
    103103            </p>
    104104        <?php } ?>
  • pie-calendar/trunk/includes/shortcode.php

    r3391964 r3419512  
    141141        }
    142142
    143     $eventsArray = apply_filters('piecal_events_array_filter', $eventsArray, $rangeStart = null, $rangeEnd = null, $appendOffset);
     143    $eventsArray = apply_filters('piecal_events_array_filter', $eventsArray, $rangeStart = null, $rangeEnd = null, $appendOffset, $atts);
     144
     145    $eventSources = [
     146        $eventsArray
     147    ];
     148
     149    $eventSources = apply_filters('piecal_event_sources', $eventSources, $rangeStart = null, $rangeEnd = null, $appendOffset, $atts);
    144150
    145151    $eventSources = [
     
    233239    <script>
    234240            let piecalAJAX = {
    235             ajaxURL: "<?php echo admin_url('admin-ajax.php'); ?>",
     241            ajaxURL: "<?php echo esc_url( admin_url('admin-ajax.php') ); ?>",
    236242            ajaxNonce: "<?php echo wp_create_nonce('piecal_ajax_nonce'); ?>"
    237243            }
  • pie-calendar/trunk/includes/utils/Scripts.php

    r3351250 r3419512  
    8282
    8383                    wp_localize_script( 'piecal-utils', 'piecalVars', [
    84                         'useAdaptiveTimezones' => $useAdaptiveTimezones
     84                        'useAdaptiveTimezones' => $useAdaptiveTimezones,
     85                        'siteTimezoneString' => wp_timezone_string(),
     86                        'siteGMTOffset' => piecal_site_gmt_offset()
    8587                    ] );
    8688                break;
  • pie-calendar/trunk/includes/utils/Time.php

    r3174521 r3419512  
    112112    // Helper function to get start date from pass-through (URL) or meta key depending on what's available.
    113113    public static function getStartDate() {
    114         $timezoneObj = new DateTimeZone( $_GET['timezone'] ?? wp_timezone_string() );
     114        $tz_string = isset( $_GET['timezone'] ) ? sanitize_text_field( wp_unslash( $_GET['timezone'] ) ) : wp_timezone_string();
     115
     116        if( in_array( $tz_string, timezone_identifiers_list(), true ) ) {
     117            try {
     118                $timezoneObj = new DateTimeZone( $tz_string );
     119            } catch( Exception $e ) {
     120                $timezoneObj = new DateTimeZone( wp_timezone_string() ?: 'UTC' );
     121            }
     122        } else {
     123            $timezoneObj = new DateTimeZone( wp_timezone_string() ?: 'UTC' );
     124        }
     125       
    115126        $startDate = null;
    116127
     
    131142    // Helper function to get end date from pass-through (URL) or meta key depending on what's available.
    132143    public static function getEndDate() {
    133         $timezoneObj = new DateTimeZone( $_GET['timezone'] ?? wp_timezone_string() );
     144        $tz_string = isset( $_GET['timezone'] ) ? sanitize_text_field( wp_unslash( $_GET['timezone'] ) ) : wp_timezone_string();
     145
     146        if( in_array( $tz_string, timezone_identifiers_list(), true ) ) {
     147            try {
     148                $timezoneObj = new DateTimeZone( $tz_string );
     149            } catch( Exception $e ) {
     150                $timezoneObj = new DateTimeZone( wp_timezone_string() ?: 'UTC' );
     151            }
     152        } else {
     153            $timezoneObj = new DateTimeZone( wp_timezone_string() ?: 'UTC' );
     154        }
     155       
    134156        $endDate = null;
    135157
  • pie-calendar/trunk/languages/piecal.pot

    r3391964 r3419512  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Pie Calendar 1.3.0.2\n"
     5"Project-Id-Version: Pie Calendar 1.3.0.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pie-calendar\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-11-07T20:49:50+00:00\n"
     12"POT-Creation-Date: 2025-12-14T17:32:03+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    4949#. Translators: String for Month - Classic view in view picker dropdown.
    5050#: includes/block.php:223
    51 #: includes/shortcode.php:164
     51#: includes/shortcode.php:170
    5252msgid "Month - Classic"
    5353msgstr ""
     
    5555#. Translators: String for Month - List view in view picker dropdown.
    5656#: includes/block.php:225
    57 #: includes/shortcode.php:166
     57#: includes/shortcode.php:172
    5858msgid "Month - List"
    5959msgstr ""
     
    6161#. Translators: String for Week - Time Grid view in view picker dropdown.
    6262#: includes/block.php:227
    63 #: includes/shortcode.php:168
     63#: includes/shortcode.php:174
    6464msgid "Week - Time Grid"
    6565msgstr ""
     
    6767#. Translators: String for Week - List view in view picker dropdown.
    6868#: includes/block.php:229
    69 #: includes/shortcode.php:170
     69#: includes/shortcode.php:176
    7070msgid "Week - List"
    7171msgstr ""
     
    7878#. Translators: String for Day - List view in view picker dropdown.
    7979#: includes/block.php:233
    80 #: includes/shortcode.php:174
     80#: includes/shortcode.php:180
    8181msgid "Day - List"
    8282msgstr ""
     
    134134#. Translators: This string is for displaying the viewer's time zone via the Pie Calendar Info shortcode
    135135#: includes/piecal-info-shortcode.php:37
    136 #: includes/shortcode.php:560
     136#: includes/shortcode.php:566
    137137msgid "Event times are listed in your local time zone: "
    138138msgstr ""
     
    166166
    167167#. Translators: String for Week - Day Grid view in view picker dropdown.
    168 #: includes/shortcode.php:172
     168#: includes/shortcode.php:178
    169169msgid "Week - Day Grid"
    170170msgstr ""
    171171
    172 #: includes/shortcode.php:439
     172#: includes/shortcode.php:445
    173173msgid "Skip Calendar"
    174174msgstr ""
    175175
    176 #: includes/shortcode.php:451
     176#: includes/shortcode.php:457
    177177msgid "Back to full month view."
    178178msgstr ""
    179179
    180 #: includes/shortcode.php:453
     180#: includes/shortcode.php:459
    181181msgid "Back To Full Month"
    182182msgstr ""
    183183
    184184#. Translators: Label for calendar view chooser.
    185 #: includes/shortcode.php:458
     185#: includes/shortcode.php:464
    186186msgid "Choose View"
    187187msgstr ""
    188188
    189189#. Translators: Label for close button in Pie Calendar popover.
    190 #: includes/shortcode.php:500
     190#: includes/shortcode.php:506
    191191msgid "Close event details"
    192192msgstr ""
    193193
    194194#. Translators: Label for event start date in Pie Calendar popover.
    195 #: includes/shortcode.php:513
     195#: includes/shortcode.php:519
    196196msgid "Starts"
    197197msgstr ""
    198198
    199199#. Translators: Label for event end date in Pie Calendar popover.
    200 #: includes/shortcode.php:522
     200#: includes/shortcode.php:528
    201201msgid "Ends"
    202202msgstr ""
    203203
    204204#. Translators: Label for "View <Post Type>" in Pie Calendar popover.
    205 #: includes/shortcode.php:541
     205#: includes/shortcode.php:547
    206206msgid "View "
    207207msgstr ""
  • pie-calendar/trunk/plugin.php

    r3391964 r3419512  
    1010 * Plugin URI:        https://piecalendar.com
    1111 * Description:       Turn any post type into a calendar event and display it on a calendar.
    12  * Version:           1.3.0.2
     12 * Version:           1.3.0.3
    1313 * Author:            Elijah Mills & Jonathan Jernigan
    1414 * Author URI:        https://piecalendar.com/about
     
    2626}
    2727
    28 define( 'PIECAL_VERSION', '1.3.0.2' );
     28define( 'PIECAL_VERSION', '1.3.0.3' );
    2929define( 'PIECAL_PATH', plugin_dir_url( __FILE__ ) );
    3030define( 'PIECAL_DIR', plugin_dir_path( __FILE__ ) );
  • pie-calendar/trunk/readme.txt

    r3391964 r3419512  
    1 === Events Calendar Made Simple - Pie Calendar ===
     1=== Pie Calendar - Events Calendar Made Simple ===
    22Contributors: apexws, spellhammer
    33Tags: events, calendar, event
    44Donate link: https://piecalendar.com
    55Requires at least: 5.9
    6 Tested up to: 6.8.3
     6Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.3.0.2
     8Stable tag: 1.3.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313
    1414== Description ==
    15 **The Most Flexible Events Calendar Plugin for WordPress**
     15**Create an event calendar in less than 4 minutes. Simple, flexible, and light-weight.**
    1616
    1717Pie Calendar lets you effortlessly turn any post on your WordPress site into an event, making it visible on a user-friendly front-end calendar. It doesn't lock you into any post type - use the default WordPress posts or pages, or create your own Custom Post Type (CPT).
     
    8989
    9090== Changelog ==
     91
     92= 1.3.0.3 =
     93* Tweak: Addressed a few minor issues turned up during a security review.
     94* Tweak: Changed readme to comply with .org requirements.
    9195
    9296= 1.3.0.2 =
Note: See TracChangeset for help on using the changeset viewer.