Version Description
(2022-03-28) = - Fixed rare issue in which the reservation date would save as one year later than booked.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Restaurant Reservations |
Version | 2.5.4 |
Comparing to | |
See all releases |
Code changes from version 2.5.3 to 2.5.4
- includes/Booking.class.php +5 -5
- readme.txt +4 -1
- restaurant-reservations.php +2 -2
includes/Booking.class.php
CHANGED
@@ -413,11 +413,11 @@ class rtbBooking {
|
|
413 |
$end->setTime(23, 59, 58);
|
414 |
|
415 |
if( $start < $request && $request < $end ) {
|
416 |
-
$excp_rule_obj = $request;
|
417 |
}
|
418 |
else {
|
419 |
// Set anything to void this rule for following check
|
420 |
-
$excp_rule_obj = $request;
|
421 |
$excp_rule_obj->add( new DateInterval( 'P1Y' ) );
|
422 |
}
|
423 |
}
|
@@ -1116,11 +1116,11 @@ class rtbBooking {
|
|
1116 |
public function is_size_based_deposit_applicable() {
|
1117 |
global $rtb_controller;
|
1118 |
|
1119 |
-
if ($this->party
|
1120 |
-
return
|
1121 |
}
|
1122 |
|
1123 |
-
return
|
1124 |
}
|
1125 |
|
1126 |
/**
|
413 |
$end->setTime(23, 59, 58);
|
414 |
|
415 |
if( $start < $request && $request < $end ) {
|
416 |
+
$excp_rule_obj = clone $request;
|
417 |
}
|
418 |
else {
|
419 |
// Set anything to void this rule for following check
|
420 |
+
$excp_rule_obj = clone $request;
|
421 |
$excp_rule_obj->add( new DateInterval( 'P1Y' ) );
|
422 |
}
|
423 |
}
|
1116 |
public function is_size_based_deposit_applicable() {
|
1117 |
global $rtb_controller;
|
1118 |
|
1119 |
+
if ($this->party < $rtb_controller->settings->get_setting( 'rtb-deposit-min-party-size' ) ) {
|
1120 |
+
return false;
|
1121 |
}
|
1122 |
|
1123 |
+
return true;
|
1124 |
}
|
1125 |
|
1126 |
/**
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: FiveStarPlugins
|
|
3 |
Requires at Least: 4.4
|
4 |
Tested Up To: 5.9
|
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.5.
|
7 |
License: GPLv3
|
8 |
License URI:http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
Donate Link: https://www.etoilewebdesign.com/plugin-donations/
|
@@ -198,6 +198,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
|
|
198 |
|
199 |
== Changelog ==
|
200 |
|
|
|
|
|
|
|
201 |
= 2.5.3 (2022-03-22) =
|
202 |
- Fix for conflict between date range exceptions and regular scheduling rules.
|
203 |
- Fix for conflict between global date range exceptions and location-specific scheduling rules.
|
3 |
Requires at Least: 4.4
|
4 |
Tested Up To: 5.9
|
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.5.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/
|
198 |
|
199 |
== Changelog ==
|
200 |
|
201 |
+
= 2.5.4 (2022-03-28) =
|
202 |
+
- Fixed rare issue in which the reservation date would save as one year later than booked.
|
203 |
+
|
204 |
= 2.5.3 (2022-03-22) =
|
205 |
- Fix for conflict between date range exceptions and regular scheduling rules.
|
206 |
- Fix for conflict between global date range exceptions and location-specific scheduling rules.
|
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.5.
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|
@@ -39,7 +39,7 @@ class rtbInit {
|
|
39 |
public function __construct() {
|
40 |
|
41 |
// Common strings
|
42 |
-
define( 'RTB_VERSION', '2.5.
|
43 |
define( 'RTB_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
44 |
define( 'RTB_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|
45 |
define( 'RTB_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
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.5.4
|
7 |
* Author: FiveStarPlugins
|
8 |
* Author URI: https://profiles.wordpress.org/fivestarplugins/
|
9 |
* Text Domain: restaurant-reservations
|
39 |
public function __construct() {
|
40 |
|
41 |
// Common strings
|
42 |
+
define( 'RTB_VERSION', '2.5.4' );
|
43 |
define( 'RTB_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
44 |
define( 'RTB_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|
45 |
define( 'RTB_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|