Plugin Directory

Changeset 2505677


Ignore:
Timestamp:
03/30/2021 06:34:06 AM (5 years ago)
Author:
wpicalavailability
Message:
  • Fixed: Compatibility issues with WP 5.7 and PHP 8
Location:
wp-ical-availability/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-ical-availability/trunk/readme.txt

    r2385417 r2505677  
    33Tags: ical calendar, ical, import bookings, sync calendar, availability calendar
    44Requires at least: 3.0
    5 Tested up to: 5.5
    6 Stable tag: 1.0.2
     5Tested up to: 5.7
     6Stable tag: 1.0.3
    77
    88This calendar imports an iCal feed from an external website, like Airbnb, and shows the availability based on that feed.
     
    6767== Changelog ==
    6868
    69 = 1.0.2=
     69= 1.0.3 =
     70* Fixed: Compatibility issues with WP 5.7 and PHP 8
     71
     72= 1.0.2 =
    7073* Fixed: Removed overwriting of the default timezone
    7174
  • wp-ical-availability/trunk/views/calendar/edit-calendar.php

    r1370585 r2505677  
    1919    <?php $sql = $wpdb->prepare('SELECT * FROM ' . $wpdb->base_prefix . 'wpia_calendars WHERE calendarID=%d',$_GET['id']); ?>
    2020    <?php $calendar = $wpdb->get_row( $sql, ARRAY_A );?>
    21     <?php if(($wpdb->num_rows > 0 || $_GET['id'] == 'wpia-new-calendar') && (@in_array( get_current_user_id(), json_decode($calendar['calendarUsers'])) || current_user_can( MIN_USER_CAPABILITY )) ):?>
     21    <?php $calendar_users = isset($calendar['calendarUsers']) ? json_decode($calendar['calendarUsers']) : [] ?>
     22    <?php if(($wpdb->num_rows > 0 || $_GET['id'] == 'wpia-new-calendar') && (@in_array( get_current_user_id(), $calendar_users) || current_user_can( MIN_USER_CAPABILITY )) ):?>
    2223       
    2324        <?php if($_GET['id'] == 'wpia-new-calendar') { $calendar['calendarData'] = '{}';}?>
  • wp-ical-availability/trunk/wp-ical-availability.php

    r2385416 r2505677  
    44 * Plugin URI:  http://www.wpicalavailability.com
    55 * Description: WP iCal Availability
    6  * Version:     1.0.2
     6 * Version:     1.0.3
    77 * Author:      WP iCal Availability
    88 * Author URI:  http://www.wpicalavailability.com
Note: See TracChangeset for help on using the changeset viewer.