Version Description
(2020-05-29) = - Fixes an issue with the view bookings form where the date would not select correctly if it was being included using the shortcode instead of the option
Download this release
Release Info
Developer | Rustaurius |
Plugin | Restaurant Reservations |
Version | 2.1.6 |
Comparing to | |
See all releases |
Code changes from version 2.1.5 to 2.1.6
- includes/template-functions.php +5 -4
- readme.txt +3 -0
- restaurant-reservations.php +1 -1
includes/template-functions.php
CHANGED
@@ -298,7 +298,7 @@ function rtb_print_payment_form( $args = array() ) {
|
|
298 |
* Process Stripe payments for reservation deposits
|
299 |
* @since 2.1.0
|
300 |
*/
|
301 |
-
if ( !function_exists( '
|
302 |
function rtb_process_stripe_payment() {
|
303 |
global $rtb_controller;
|
304 |
|
@@ -490,6 +490,7 @@ function rtb_display_bookings_form_shortcode( $args = array() ) {
|
|
490 |
$args = shortcode_atts(
|
491 |
array(
|
492 |
'location' => 0,
|
|
|
493 |
),
|
494 |
$args,
|
495 |
'view-booking-form'
|
@@ -542,9 +543,9 @@ function rtb_print_view_bookings_form( $args = array() ) {
|
|
542 |
'post_type' => 'rtb-booking',
|
543 |
'posts_per_page' => -1,
|
544 |
'date_query' => array(
|
545 |
-
'year' => substr($args['date'], 0, 4),
|
546 |
-
'month' => substr($args['date'], 5, 2),
|
547 |
-
'day' => substr($args['date'], 8, 2)
|
548 |
),
|
549 |
'post_status' => array_keys( $rtb_controller->cpts->booking_statuses ),
|
550 |
'orderby' => 'date',
|
298 |
* Process Stripe payments for reservation deposits
|
299 |
* @since 2.1.0
|
300 |
*/
|
301 |
+
if ( !function_exists( 'rtb_process_stripe_payment' ) ) {
|
302 |
function rtb_process_stripe_payment() {
|
303 |
global $rtb_controller;
|
304 |
|
490 |
$args = shortcode_atts(
|
491 |
array(
|
492 |
'location' => 0,
|
493 |
+
'date' => isset( $_GET['date'] ) ? $_GET['date'] : date('Y-m-d')
|
494 |
),
|
495 |
$args,
|
496 |
'view-booking-form'
|
543 |
'post_type' => 'rtb-booking',
|
544 |
'posts_per_page' => -1,
|
545 |
'date_query' => array(
|
546 |
+
'year' => substr( $args['date'], 0, 4 ),
|
547 |
+
'month' => substr( $args['date'], 5, 2 ),
|
548 |
+
'day' => substr( $args['date'], 8, 2 )
|
549 |
),
|
550 |
'post_status' => array_keys( $rtb_controller->cpts->booking_statuses ),
|
551 |
'orderby' => 'date',
|
readme.txt
CHANGED
@@ -184,6 +184,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
187 |
= 2.1.5 (2020-05-28) =
|
188 |
- New option to enable a maximum number of seats at one time in the premium section
|
189 |
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 2.1.6 (2020-05-29) =
|
188 |
+
- Fixes an issue with the view bookings form where the date would not select correctly if it was being included using the shortcode instead of the option
|
189 |
+
|
190 |
= 2.1.5 (2020-05-28) =
|
191 |
- New option to enable a maximum number of seats at one time in the premium section
|
192 |
|
restaurant-reservations.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Five Star Restaurant Reservations
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
-
* Version: 2.1.
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|
3 |
* Plugin Name: Five Star Restaurant Reservations
|
4 |
* Plugin URI: http://www.fivestarplugins.com/plugins/five-star-restaurant-reservations/
|
5 |
* Description: Restaurant reservations made easy. Accept bookings online. Quickly confirm or reject reservations, send email notifications, set booking times and more.
|
6 |
+
* Version: 2.1.6
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|