Restaurant Reservations - Version 2.5.9

Version Description

(2022-04-19) = - Fixed an issue in which date range filtering (on the admin Bookings screen) was setting an incorrect date for the "Upcoming" export filtering option. - Added a filter that lets you specify your own values for the Time Interval setting. Filter is: rtb_setting_time_interval_options

Download this release

Release Info

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

Code changes from version 2.5.8 to 2.5.9

assets/js/admin.js CHANGED
@@ -1050,8 +1050,8 @@ jQuery(document).ready(function ($) {
1050
  ebfrtb_picker_start_date = $( '#ebfrtb-start-date' ).pickadate( settings );
1051
  ebfrtb_picker_end_date = $( '#ebfrtb-end-date' ).pickadate( settings );
1052
 
1053
- ebfrtb_picker_start_date.pickadate( 'picker' ).set( 'select', start_date, { format: 'yyyy-mm-dd' } );
1054
- ebfrtb_picker_end_date.pickadate( 'picker' ).set( 'select', end_date, { format: 'yyyy-mm-dd' } );
1055
  }
1056
 
1057
  // Load export
1050
  ebfrtb_picker_start_date = $( '#ebfrtb-start-date' ).pickadate( settings );
1051
  ebfrtb_picker_end_date = $( '#ebfrtb-end-date' ).pickadate( settings );
1052
 
1053
+ if ( start_date ) { ebfrtb_picker_start_date.pickadate( 'picker' ).set( 'select', start_date, { format: 'yyyy-mm-dd' } ); }
1054
+ if ( end_date ) { ebfrtb_picker_end_date.pickadate( 'picker' ).set( 'select', end_date, { format: 'yyyy-mm-dd' } ); }
1055
  }
1056
 
1057
  // Load export
includes/Settings.class.php CHANGED
@@ -1054,15 +1054,16 @@ If you were not the one to cancel this booking, please contact us.
1054
  'title' => __( 'Time Interval', 'restaurant-reservations' ),
1055
  'description' => __( 'Select the number of minutes between each available time.', 'restaurant-reservations' ),
1056
  'blank_option' => false,
1057
- 'options' => array(
1058
- '180' => __( 'Every 180 minutes', 'restaurant-reservations' ),
1059
- '120' => __( 'Every 120 minutes', 'restaurant-reservations' ),
1060
- '90' => __( 'Every 90 minutes', 'restaurant-reservations' ),
1061
- '60' => __( 'Every 60 minutes', 'restaurant-reservations' ),
1062
- '30' => __( 'Every 30 minutes', 'restaurant-reservations' ),
1063
- '15' => __( 'Every 15 minutes', 'restaurant-reservations' ),
1064
- '10' => __( 'Every 10 minutes', 'restaurant-reservations' ),
1065
- '5' => __( 'Every 5 minutes', 'restaurant-reservations' ),
 
1066
  )
1067
  )
1068
  );
1054
  'title' => __( 'Time Interval', 'restaurant-reservations' ),
1055
  'description' => __( 'Select the number of minutes between each available time.', 'restaurant-reservations' ),
1056
  'blank_option' => false,
1057
+ 'options' => apply_filters( 'rtb_setting_time_interval_options', array(
1058
+ '180' => __( 'Every 180 minutes', 'restaurant-reservations' ),
1059
+ '120' => __( 'Every 120 minutes', 'restaurant-reservations' ),
1060
+ '90' => __( 'Every 90 minutes', 'restaurant-reservations' ),
1061
+ '60' => __( 'Every 60 minutes', 'restaurant-reservations' ),
1062
+ '30' => __( 'Every 30 minutes', 'restaurant-reservations' ),
1063
+ '15' => __( 'Every 15 minutes', 'restaurant-reservations' ),
1064
+ '10' => __( 'Every 10 minutes', 'restaurant-reservations' ),
1065
+ '5' => __( 'Every 5 minutes', 'restaurant-reservations' ),
1066
+ )
1067
  )
1068
  )
1069
  );
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.8
7
  License: GPLv3
8
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
9
  Donate Link: https://www.etoilewebdesign.com/plugin-donations/
@@ -199,6 +199,10 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
199
 
200
  == Changelog ==
201
 
 
 
 
 
202
  = 2.5.8 (2022-04-12) =
203
  - Fixed an issue in which the MailChimp subscription was not working when the "Confirmed Redirect Page" option was being used.
204
  - Added in labelling options, which can be used to translate or change the wording of each label that appears on the front end of the plugin.
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.9
7
  License: GPLv3
8
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
9
  Donate Link: https://www.etoilewebdesign.com/plugin-donations/
199
 
200
  == Changelog ==
201
 
202
+ = 2.5.9 (2022-04-19) =
203
+ - Fixed an issue in which date range filtering (on the admin Bookings screen) was setting an incorrect date for the "Upcoming" export filtering option.
204
+ - Added a filter that lets you specify your own values for the Time Interval setting. Filter is: rtb_setting_time_interval_options
205
+
206
  = 2.5.8 (2022-04-12) =
207
  - Fixed an issue in which the MailChimp subscription was not working when the "Confirmed Redirect Page" option was being used.
208
  - Added in labelling options, which can be used to translate or change the wording of each label that appears on the front end of the plugin.
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.8
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.8' );
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.9
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.9' );
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__ ) );