Plugin Directory

Changeset 2042850


Ignore:
Timestamp:
03/02/2019 03:44:45 PM (7 years ago)
Author:
Webby Scots
Message:

Bump tested up to in readme.txt

Location:
woo-bookings-dropdown/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woo-bookings-dropdown/trunk/readme.txt

    r2021084 r2042850  
    33Tags: WooCommerce, Bookings
    44Donate link: https://www.paypal.me/webbyscots/10
    5 Requires at least: 3.0.1
    6 Tested up to: 4.7
     5Requires at least: 3.0.0
     6Tested up to: 5.1
    77Stable tag: trunk
    88License: GPLv2 or later
     
    6969= 1.2.0 =
    7070* **Update** Now works with latest version of WooCommerce Bookings 1.12.2 as of this update
     71* bump tested up to
  • woo-bookings-dropdown/trunk/woo-bookings-dropdown.php

    r2021084 r2042850  
    33Plugin Name: Woocommerce Bookings Dropdown
    44Description: Swaps the date picker for a dropdown of dates
    5 Version: 1.2.0
     5Version: 1.2.1
    66Author: Webby Scots
    77Author URI: http://webbyscots.com/
     
    133133        foreach($years as $year => $months) {
    134134            foreach($months as $month => $days) {
    135                 foreach($days as $day => $avail) {
     135                foreach($months as $month => $days) {
     136                    $day = reset(array_keys($days));
    136137                    $dtime = strtotime($year."-".$month."-".$day);
     138                       
    137139                    $js_date = date( 'Y-n-j', $dtime );
    138                     if ((bool)$avail == true && $dtime > time() && $dtime <= $max_date-1 && !isset($field['fully_booked_days'][$js_date])) {
     140                    if ($dtime > time() && $dtime <= $max_date-1 && !isset($field['fully_booked_days'][$js_date])) {
    139141                        $dates[$dtime] = date_i18n("F jS, Y", $dtime);
    140142                    }
     
    142144            }
    143145        }
    144    }
     146    }
    145147   
    146148    ksort($dates);
Note: See TracChangeset for help on using the changeset viewer.