Version Description
(2021-08-31) = - Fix for issue (and associated warning) of payment gateway setting not automatically converted/set to array after automatic plugin update. - Fix for 0 party size issue on new installs.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Restaurant Reservations |
Version | 2.3.4 |
Comparing to | |
See all releases |
Code changes from version 2.3.3 to 2.3.4
includes/Booking.class.php
CHANGED
@@ -485,7 +485,7 @@ class rtbBooking {
|
|
485 |
// Check party size
|
486 |
} else {
|
487 |
$party_size = $rtb_controller->settings->get_setting( 'party-size' );
|
488 |
-
if ( !empty( $party_size ) && $party_size < $this->party ) {
|
489 |
$this->validation_errors[] = array(
|
490 |
'field' => 'party',
|
491 |
'post_variable' => $this->party,
|
@@ -493,7 +493,7 @@ class rtbBooking {
|
|
493 |
);
|
494 |
}
|
495 |
$party_size_min = $rtb_controller->settings->get_setting( 'party-size-min' );
|
496 |
-
if ( !empty( $party_size_min ) && $party_size_min > $this->party ) {
|
497 |
$this->validation_errors[] = array(
|
498 |
'field' => 'party',
|
499 |
'post_variable' => $this->party,
|
485 |
// Check party size
|
486 |
} else {
|
487 |
$party_size = $rtb_controller->settings->get_setting( 'party-size' );
|
488 |
+
if ( ! empty( $party_size ) && $party_size < $this->party ) {
|
489 |
$this->validation_errors[] = array(
|
490 |
'field' => 'party',
|
491 |
'post_variable' => $this->party,
|
493 |
);
|
494 |
}
|
495 |
$party_size_min = $rtb_controller->settings->get_setting( 'party-size-min' );
|
496 |
+
if ( ! empty( $party_size_min ) && $party_size_min > $this->party ) {
|
497 |
$this->validation_errors[] = array(
|
498 |
'field' => 'party',
|
499 |
'post_variable' => $this->party,
|
includes/InstallationWalkthrough.class.php
CHANGED
@@ -214,7 +214,7 @@ class rtbInstallationWalkthrough {
|
|
214 |
<div class='rtb-welcome-screen-option'>
|
215 |
<label><?php _e('Max Party Size:', 'restaurant-reservations'); ?></label>
|
216 |
<select name='party-size'>
|
217 |
-
<option><?php _e('Any Size', 'restaurant-reservations' ); ?></option>
|
218 |
<?php for ( $i = 1; $i <= 100; $i++ ) { ?>
|
219 |
<option value='<?php echo $i; ?>'><?php echo $i; ?></option>
|
220 |
<?php } ?>
|
214 |
<div class='rtb-welcome-screen-option'>
|
215 |
<label><?php _e('Max Party Size:', 'restaurant-reservations'); ?></label>
|
216 |
<select name='party-size'>
|
217 |
+
<option value='0'><?php _e('Any Size', 'restaurant-reservations' ); ?></option>
|
218 |
<?php for ( $i = 1; $i <= 100; $i++ ) { ?>
|
219 |
<option value='<?php echo $i; ?>'><?php echo $i; ?></option>
|
220 |
<?php } ?>
|
includes/PaymentManager.class.php
CHANGED
@@ -412,7 +412,12 @@ class rtbPaymentManager {
|
|
412 |
$this->strip_invalid_gateway();
|
413 |
|
414 |
$this->enabled_gateway_list = $rtb_controller->settings->get_setting( 'rtb-payment-gateway' );
|
415 |
-
|
|
|
|
|
|
|
|
|
|
|
416 |
$this->enabled_gateway_list = apply_filters(
|
417 |
'rtb-payment-active-gateway',
|
418 |
$this->enabled_gateway_list,
|
@@ -420,7 +425,7 @@ class rtbPaymentManager {
|
|
420 |
);
|
421 |
|
422 |
// if multiple gateways enabled, print list to ask for one gateway
|
423 |
-
if ( 1 < count( $this->enabled_gateway_list ) ) {
|
424 |
add_filter( 'rtb_booking_form_fields', [$this, 'add_field_booking_form_gateway'], 30, 3 );
|
425 |
}
|
426 |
|
412 |
$this->strip_invalid_gateway();
|
413 |
|
414 |
$this->enabled_gateway_list = $rtb_controller->settings->get_setting( 'rtb-payment-gateway' );
|
415 |
+
|
416 |
+
// Temporary, because migration function do not work on automatic plugin updates
|
417 |
+
$this->enabled_gateway_list = is_array( $this->enabled_gateway_list )
|
418 |
+
? $this->enabled_gateway_list
|
419 |
+
: [ $this->enabled_gateway_list ];
|
420 |
+
|
421 |
$this->enabled_gateway_list = apply_filters(
|
422 |
'rtb-payment-active-gateway',
|
423 |
$this->enabled_gateway_list,
|
425 |
);
|
426 |
|
427 |
// if multiple gateways enabled, print list to ask for one gateway
|
428 |
+
if ( is_array( $this->enabled_gateway_list ) and 1 < count( $this->enabled_gateway_list ) ) {
|
429 |
add_filter( 'rtb_booking_form_fields', [$this, 'add_field_booking_form_gateway'], 30, 3 );
|
430 |
}
|
431 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: FiveStarPlugins
|
|
3 |
Requires at Least: 4.4
|
4 |
Tested Up To: 5.8
|
5 |
Tags: reservation, reservations, restaurant reservations, reservation form, restaurant booking, restaurant reservation form, restaurant booking form, restaurant booking system, reservation system, online reservations, online restaurant booking, dinner reservations, restaurant form, gutenberg reservations, gutenberg restaurant reservations, gutenberg restaurant booking, mobile reservations, responsive reservations, table reservations, open table, book table, reserve table, easy reservations, simple reservations, quick restaurant reservations, custom reservation form, custom restaurant reservations
|
6 |
-
Stable tag: 2.3.
|
7 |
License: GPLv3
|
8 |
License URI:http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Donate Link: https://www.etoilewebdesign.com/plugin-donations/
|
@@ -197,6 +197,10 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
|
|
197 |
|
198 |
== Changelog ==
|
199 |
|
|
|
|
|
|
|
|
|
200 |
= 2.3.3 (2021-08-25) =
|
201 |
- Fix for an issue sometimes causing the Max Reservations, Max People, Automatically Confirm Below Seats Number and Automatically Confirm Below Reservation Number settings to not save correctly.
|
202 |
|
3 |
Requires at Least: 4.4
|
4 |
Tested Up To: 5.8
|
5 |
Tags: reservation, reservations, restaurant reservations, reservation form, restaurant booking, restaurant reservation form, restaurant booking form, restaurant booking system, reservation system, online reservations, online restaurant booking, dinner reservations, restaurant form, gutenberg reservations, gutenberg restaurant reservations, gutenberg restaurant booking, mobile reservations, responsive reservations, table reservations, open table, book table, reserve table, easy reservations, simple reservations, quick restaurant reservations, custom reservation form, custom restaurant reservations
|
6 |
+
Stable tag: 2.3.4
|
7 |
License: GPLv3
|
8 |
License URI:http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Donate Link: https://www.etoilewebdesign.com/plugin-donations/
|
197 |
|
198 |
== Changelog ==
|
199 |
|
200 |
+
= 2.3.4 (2021-08-31) =
|
201 |
+
- Fix for issue (and associated warning) of payment gateway setting not automatically converted/set to array after automatic plugin update.
|
202 |
+
- Fix for 0 party size issue on new installs.
|
203 |
+
|
204 |
= 2.3.3 (2021-08-25) =
|
205 |
- Fix for an issue sometimes causing the Max Reservations, Max People, Automatically Confirm Below Seats Number and Automatically Confirm Below Reservation Number settings to not save correctly.
|
206 |
|
restaurant-reservations.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
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.3.
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|
3 |
* Plugin Name: Five Star Restaurant Reservations - WordPress Booking Plugin
|
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.3.4
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|