Restaurant Reservations - Version 2.5.6

Version Description

(2022-04-01) = - Fixed an issue stemming from the date/time stamp in the details pop-up on the admin bookings screen that was causing an error to display in the admin.

Download this release

Release Info

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

Code changes from version 2.5.5 to 2.5.6

includes/Booking.class.php CHANGED
@@ -151,6 +151,7 @@ class rtbBooking {
151
  * @since 1.7.1
152
  */
153
  public function format_timestamp( $timestamp ) {
 
154
  $time = date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $timestamp );
155
  return $time;
156
  }
@@ -1419,7 +1420,7 @@ class rtbBooking {
1419
  if ( empty( $this->date_submission ) ) {
1420
  $meta['date_submission'] = (new DateTime( 'now', wp_timezone() ))->format( 'U' );
1421
  } else {
1422
- $meta['date_submission'] = $this->date_submission;
1423
  }
1424
 
1425
  if ( !empty( $this->consent_acquired ) ) {
151
  * @since 1.7.1
152
  */
153
  public function format_timestamp( $timestamp ) {
154
+ $timestamp = $timestamp instanceof DateTime ? $timestamp->format('U') : $timestamp;
155
  $time = date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $timestamp );
156
  return $time;
157
  }
1420
  if ( empty( $this->date_submission ) ) {
1421
  $meta['date_submission'] = (new DateTime( 'now', wp_timezone() ))->format( 'U' );
1422
  } else {
1423
+ $meta['date_submission'] = $this->date_submission->format( 'U' );
1424
  }
1425
 
1426
  if ( !empty( $this->consent_acquired ) ) {
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.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.5 (2022-03-29) =
202
  - Updated to timezone based date/time handling throughout the plugin, to have more consistent behaviour for all users, irrespective of their timezone/server.
203
 
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.6
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.6 (2022-04-01) =
202
+ - Fixed an issue stemming from the date/time stamp in the details pop-up on the admin bookings screen that was causing an error to display in the admin.
203
+
204
  = 2.5.5 (2022-03-29) =
205
  - Updated to timezone based date/time handling throughout the plugin, to have more consistent behaviour for all users, irrespective of their timezone/server.
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.5.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.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.6
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.6' );
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__ ) );