Restaurant Reservations - Version 2.0.5

Version Description

(2019-10-30) = - Corrects an error with the max reservations feature when using the booking form while logged in.

Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Restaurant Reservations
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

includes/Ajax.class.php CHANGED
@@ -29,6 +29,7 @@ class rtbAJAX {
29
 
30
  public function __construct() {
31
 
 
32
  add_action( 'wp_ajax_nopriv_rtb_get_available_time_slots', array( $this, 'get_time_slots' ) );
33
  }
34
 
29
 
30
  public function __construct() {
31
 
32
+ add_action( 'wp_ajax_rtb_get_available_time_slots', array( $this, 'get_time_slots' ) );
33
  add_action( 'wp_ajax_nopriv_rtb_get_available_time_slots', array( $this, 'get_time_slots' ) );
34
  }
35
 
includes/template-functions.php CHANGED
@@ -339,7 +339,7 @@ function rtb_enqueue_assets() {
339
  'schedule_closed' => $rtb_controller->settings->get_setting( 'schedule-closed' ),
340
  'early_bookings' => is_admin() && current_user_can( 'manage_bookings' ) ? '' : $rtb_controller->settings->get_setting( 'early-bookings' ),
341
  'late_bookings' => is_admin() && current_user_can( 'manage_bookings' ) ? '' : $rtb_controller->settings->get_setting( 'late-bookings' ),
342
- 'enable_max_reservations' => $rtb_controller->settings->get_setting( 'rtb-enable-max-tables' ),
343
  'date_onload' => $rtb_controller->settings->get_setting( 'date-onload' ),
344
  'time_interval' => $rtb_controller->settings->get_setting( 'time-interval' ),
345
  'first_day' => $rtb_controller->settings->get_setting( 'week-start' ),
339
  'schedule_closed' => $rtb_controller->settings->get_setting( 'schedule-closed' ),
340
  'early_bookings' => is_admin() && current_user_can( 'manage_bookings' ) ? '' : $rtb_controller->settings->get_setting( 'early-bookings' ),
341
  'late_bookings' => is_admin() && current_user_can( 'manage_bookings' ) ? '' : $rtb_controller->settings->get_setting( 'late-bookings' ),
342
+ 'enable_max_reservations' => is_admin() && current_user_can( 'manage_bookings' ) ? false : $rtb_controller->settings->get_setting( 'rtb-enable-max-tables' ),
343
  'date_onload' => $rtb_controller->settings->get_setting( 'date-onload' ),
344
  'time_interval' => $rtb_controller->settings->get_setting( 'time-interval' ),
345
  'first_day' => $rtb_controller->settings->get_setting( 'week-start' ),
readme.txt CHANGED
@@ -175,6 +175,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
175
 
176
  == Changelog ==
177
 
 
 
 
178
  = 2.0.4 (2019-10-29) =
179
  - Corrects an error that was coming up on submission when there was a custom field in the form.
180
 
175
 
176
  == Changelog ==
177
 
178
+ = 2.0.5 (2019-10-30) =
179
+ - Corrects an error with the max reservations feature when using the booking form while logged in.
180
+
181
  = 2.0.4 (2019-10-29) =
182
  - Corrects an error that was coming up on submission when there was a custom field in the form.
183
 
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.0.4
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.0.5
7
  * Author: FiveStarPlugins
8
  * Author URI: https://profiles.wordpress.org/fivestarplugins/
9
  * Text Domain: restaurant-reservations