Plugin Directory

Changeset 2333366


Ignore:
Timestamp:
07/01/2020 08:33:23 AM (6 years ago)
Author:
BookingCalendar
Message:

Update to 1.6.5

Location:
advanced-booking-calendar/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • advanced-booking-calendar/trunk/advanced-booking-calendar.php

    r2285484 r2333366  
    66Author: Advanced Booking Calendar
    77Author URI: https://booking-calendar-plugin.com
    8 Version: 1.6.4
     8Version: 1.6.5
    99Text Domain: advanced-booking-calendar
    1010Domain Path: /languages/
     
    154154    dbDelta($seasonsAssignment);
    155155    }
    156     add_option('abc_pluginversion', '164');
     156    add_option('abc_pluginversion', '165');
    157157    add_option ('abc_email', get_option( 'admin_email' ));
    158158    add_option ('abc_bookingpage', 0);
     
    625625        update_option( 'abc_pluginversion', '164');
    626626    }   
     627
     628    if(get_option( 'abc_pluginversion' ) < '165') {
     629        update_option( 'abc_pluginversion', '165');
     630    }   
    627631}
    628632add_action( 'plugins_loaded', 'advanced_booking_update_check' );
  • advanced-booking-calendar/trunk/frontend/calendaroverview.php

    r2285484 r2333366  
    8282                <tbody>';
    8383    $bookings = array();
    84     $normFromValue = strtotime("-1 day", $startDate);
     84    $normFromValue = date("Y-m-d", strtotime("-1 day", $startDate));
    8585    $normToValue = date("Y-m-d", strtotime("+".$maxday."days", $startDate));
    8686    $unconfirmedBookings = 'state = \'confirmed\'';
     
    9696                        OR (end <= \''.$normFromValue.'\' AND end >= \''.$normToValue.'\')
    9797                        OR (end >= \''.$normFromValue.'\' AND end <= \''.$normToValue.'\')
    98                         )', ARRAY_A); 
     98                        )', ARRAY_A);
    9999    foreach($bookingQuery as $bookingRow){
    100100        $bookings[$bookingRow["calendar_id"]][] = $bookingRow;  // Getting all confirmed bookings for the current month
     
    116116        }
    117117           
    118         $cTime = $normFromValue;
     118        $cTime = strtotime($normFromValue);
    119119        for ($i=0; $i<($maxday*2); $i++) {
    120120            $cAvailability = '';
  • advanced-booking-calendar/trunk/readme.txt

    r2285484 r2333366  
    44Requires at least: 4.3.0
    55Tested up to: 5.4
    6 Stable tag: 1.6.4
     6Stable tag: 1.6.5
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102== Changelog ==
    103103
     104= 1.6.5 =
     105* Fixed missing bookings in the overview.
     106
    104107= 1.6.4 =
    105108* Added email copy to custom messages.
Note: See TracChangeset for help on using the changeset viewer.