Restaurant Reservations - Version 2.4.2

Version Description

(2021-10-18) = - Minor fix for the reply-to header for some notifications

Download this release

Release Info

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

Code changes from version 2.4.1 to 2.4.2

includes/Notification.Email.class.php CHANGED
@@ -89,14 +89,9 @@ class rtbNotificationEmail extends rtbNotification {
89
  public function set_to_email() {
90
  global $rtb_controller;
91
 
92
- if ( ! empty( $this->to_email ) ) {
93
-
94
- $to_email = $this->to_email;
95
- }
96
- elseif ( $this->target == 'user' ) {
97
 
98
  $to_email = empty( $this->booking->email ) ? null : $this->booking->email;
99
-
100
  }
101
  else {
102
 
@@ -186,6 +181,7 @@ class rtbNotificationEmail extends rtbNotification {
186
  * @since 0.0.1
187
  */
188
  public function set_headers( $headers = null ) {
 
189
  global $rtb_controller;
190
 
191
  $from_email = apply_filters( 'rtb_notification_email_header_from_email', $rtb_controller->settings->get_setting( 'from-email-address' ) );
@@ -208,11 +204,12 @@ class rtbNotificationEmail extends rtbNotification {
208
  'UTF-8'
209
  )
210
  ) .
211
- "?= <" . $from_email . ">\r\n";
212
 
213
  $headers .= "Content-Type: text/html; charset=utf-8\r\n";
214
 
215
  $this->headers = apply_filters( 'rtb_notification_email_headers', $headers, $this );
 
216
  }
217
 
218
  /**
89
  public function set_to_email() {
90
  global $rtb_controller;
91
 
92
+ if ( $this->target == 'user' ) {
 
 
 
 
93
 
94
  $to_email = empty( $this->booking->email ) ? null : $this->booking->email;
 
95
  }
96
  else {
97
 
181
  * @since 0.0.1
182
  */
183
  public function set_headers( $headers = null ) {
184
+
185
  global $rtb_controller;
186
 
187
  $from_email = apply_filters( 'rtb_notification_email_header_from_email', $rtb_controller->settings->get_setting( 'from-email-address' ) );
204
  'UTF-8'
205
  )
206
  ) .
207
+ "?= <" . $this->from_email . ">\r\n";
208
 
209
  $headers .= "Content-Type: text/html; charset=utf-8\r\n";
210
 
211
  $this->headers = apply_filters( 'rtb_notification_email_headers', $headers, $this );
212
+
213
  }
214
 
215
  /**
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: FiveStarPlugins
3
  Requires at Least: 4.4
4
  Tested Up To: 5.8
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.4.1
7
  License: GPLv3
8
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
9
  Donate Link: https://www.etoilewebdesign.com/plugin-donations/
@@ -197,6 +197,9 @@ Find answers to even more questions in the [FAQ](http://doc.fivestarplugins.com/
197
 
198
  == Changelog ==
199
 
 
 
 
200
  = 2.4.0 (2021-10-13) =
201
  - Adds in a number of location-specific settings for those who use multiple locations
202
  - Upgrades to version 2.6.0 of simple-admin-pages
3
  Requires at Least: 4.4
4
  Tested Up To: 5.8
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.4.2
7
  License: GPLv3
8
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
9
  Donate Link: https://www.etoilewebdesign.com/plugin-donations/
197
 
198
  == Changelog ==
199
 
200
+ = 2.4.2 (2021-10-18) =
201
+ - Minor fix for the reply-to header for some notifications
202
+
203
  = 2.4.0 (2021-10-13) =
204
  - Adds in a number of location-specific settings for those who use multiple locations
205
  - Upgrades to version 2.6.0 of simple-admin-pages
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.4.1
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.4.0' );
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.4.2
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.4.2' );
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__ ) );