Restaurant Reservations - Version 2.5.16

Version Description

(2022-08-22) = - Updating a condition to make sure the new block patterns don't cause an error on WordPress installations using a version of WordPress older than 5.5.

Download this release

Release Info

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

Code changes from version 2.5.15 to 2.5.16

Files changed (2) hide show
  1. readme.txt +5 -2
  2. restaurant-reservations.php +3 -3
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Five Star Restaurant Reservations - WordPress Booking Plugin ===
2
  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.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,6 +199,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
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
 
1
  === Five Star Restaurant Reservations - WordPress Booking Plugin ===
2
  Contributors: FiveStarPlugins
3
+ Requires at Least: 5.0
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.16
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.16 (2022-08-22) =
203
+ - Updating a condition to make sure the new block patterns don't cause an error on WordPress installations using a version of WordPress older than 5.5.
204
+
205
  = 2.5.15 (2022-08-12) =
206
  - Fixed an issue with the daily email summary sometimes causing a fatal error on PHP 8 when payments were enabled.
207
 
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.15
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.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__ ) );
@@ -191,7 +191,7 @@ class rtbInit {
191
 
192
  // Load Gutenberg block patterns
193
  require_once( RTB_PLUGIN_DIR . '/includes/Patterns.class.php' );
194
- new rtbPatterns();
195
 
196
  // Load backwards compatibility functions
197
  require_once( RTB_PLUGIN_DIR . '/includes/Compatibility.class.php' );
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.16
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.16' );
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__ ) );
191
 
192
  // Load Gutenberg block patterns
193
  require_once( RTB_PLUGIN_DIR . '/includes/Patterns.class.php' );
194
+ if ( function_exists( 'register_block_pattern' ) ) { new rtbPatterns(); }
195
 
196
  // Load backwards compatibility functions
197
  require_once( RTB_PLUGIN_DIR . '/includes/Compatibility.class.php' );