Restaurant Reservations - Version 2.5.15

Version Description

(2022-08-12) = - Fixed an issue with the daily email summary sometimes causing a fatal error on PHP 8 when payments were enabled.

Download this release

Release Info

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

Code changes from version 2.5.14 to 2.5.15

includes/Notifications.class.php CHANGED
@@ -156,8 +156,18 @@ class rtbNotifications {
156
  </thead>
157
  <tbody>
158
  <?php foreach ( $bookings as $booking ) { ?>
159
- <?php $booking_object = new rtbBooking(); ?>
160
- <?php $booking_object->load_post( $booking ); ?>
 
 
 
 
 
 
 
 
 
 
161
  <tr>
162
  <td><?php echo ( new DateTime( $booking_object->date ) )->format( 'H:i:s' ); ?></td>
163
  <td><?php echo $booking_object->party; ?></td>
@@ -166,7 +176,23 @@ class rtbNotifications {
166
  <td><?php echo $booking_object->phone; ?></td>
167
  <?php if ( $display_table ) { $table = implode(', ', $booking_object->table ); echo "<td>{$table}</td>"; } ?>
168
  <td><?php echo $rtb_controller->cpts->booking_statuses[$booking_object->post_status]['label'] ?></td>
169
- <td><?php echo apply_filters( 'rtb_bookings_table_column_details', $booking_object->message, $booking_object ); ?></td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  </tr>
171
  <?php } ?>
172
  </tbody>
156
  </thead>
157
  <tbody>
158
  <?php foreach ( $bookings as $booking ) { ?>
159
+ <?php
160
+ $booking_object = new rtbBooking();
161
+ $booking_object->load_post( $booking );
162
+
163
+ $details = array();
164
+ if ( trim( $booking_object->message ) ) {
165
+ $details[] = array(
166
+ 'label' => __( 'Message', 'restaurant-reservations' ),
167
+ 'value' => esc_html( $booking_object->message ),
168
+ );
169
+ }
170
+ ?>
171
  <tr>
172
  <td><?php echo ( new DateTime( $booking_object->date ) )->format( 'H:i:s' ); ?></td>
173
  <td><?php echo $booking_object->party; ?></td>
176
  <td><?php echo $booking_object->phone; ?></td>
177
  <?php if ( $display_table ) { $table = implode(', ', $booking_object->table ); echo "<td>{$table}</td>"; } ?>
178
  <td><?php echo $rtb_controller->cpts->booking_statuses[$booking_object->post_status]['label'] ?></td>
179
+ <td>
180
+ <?php
181
+ $details = apply_filters( 'rtb_bookings_table_column_details', $details, $booking_object );
182
+ ?>
183
+ <ul class='rtb-view-booking-details'>
184
+ <?php foreach ( $details as $detail ) { ?>
185
+ <li>
186
+ <label class='rtb-view-booking-details-label'>
187
+ <?php echo esc_html( $detail['label'] ); ?>
188
+ </label>
189
+ <span class='rtb-view-booking-details-value'>
190
+ <?php echo esc_html( $detail['value'] ); ?>
191
+ </span>
192
+ </li>
193
+ <?php } ?>
194
+ </ul>
195
+ </td>
196
  </tr>
197
  <?php } ?>
198
  </tbody>
includes/template-functions.php CHANGED
@@ -428,7 +428,7 @@ function rtb_print_view_bookings_form( $args = array() ) {
428
  );
429
  }
430
 
431
- apply_filters( 'rtb_bookings_table_column_details', $details, $booking_object );
432
 
433
  ?>
434
 
428
  );
429
  }
430
 
431
+ $details = apply_filters( 'rtb_bookings_table_column_details', $details, $booking_object );
432
 
433
  ?>
434
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: FiveStarPlugins
3
  Requires at Least: 4.4
4
  Tested Up To: 6.0
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.14
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,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
199
 
200
  == Changelog ==
201
 
 
 
 
202
  = 2.5.14 (2022-08-09) =
203
  - Introducing new block patterns, which can be used to integrate your booking form and view bookings form directly into your block-based theme templates.
204
  - Added integration with Elementor and WPBakery page builders, so you can now add your booking form and view bookings form directly from within the editor for those builders.
3
  Requires at Least: 4.4
4
  Tested Up To: 6.0
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.15
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.15 (2022-08-12) =
203
+ - Fixed an issue with the daily email summary sometimes causing a fatal error on PHP 8 when payments were enabled.
204
+
205
  = 2.5.14 (2022-08-09) =
206
  - Introducing new block patterns, which can be used to integrate your booking form and view bookings form directly into your block-based theme templates.
207
  - Added integration with Elementor and WPBakery page builders, so you can now add your booking form and view bookings form directly from within the editor for those builders.
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.14
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.14' );
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.15
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.15' );
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__ ) );