Version Description
This update fixes a bug introduced in the last version which prevented Booking Managers from approving/rejecting reservations.
Download this release
Release Info
Developer | NateWr |
Plugin | Restaurant Reservations |
Version | 1.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.2
- includes/CustomPostTypes.class.php +2 -2
- readme.txt +7 -1
- restaurant-reservations.php +1 -1
includes/CustomPostTypes.class.php
CHANGED
@@ -163,7 +163,7 @@ class rtbCustomPostTypes {
|
|
163 |
public function delete_booking( $id ) {
|
164 |
|
165 |
$id = absint( $id );
|
166 |
-
if ( !current_user_can( 'manage_bookings' )
|
167 |
return false;
|
168 |
}
|
169 |
|
@@ -198,7 +198,7 @@ class rtbCustomPostTypes {
|
|
198 |
function update_booking_status( $id, $status ) {
|
199 |
|
200 |
$id = absint( $id );
|
201 |
-
if ( !current_user_can( 'manage_bookings' )
|
202 |
return false;
|
203 |
}
|
204 |
|
163 |
public function delete_booking( $id ) {
|
164 |
|
165 |
$id = absint( $id );
|
166 |
+
if ( !current_user_can( 'manage_bookings' ) ) {
|
167 |
return false;
|
168 |
}
|
169 |
|
198 |
function update_booking_status( $id, $status ) {
|
199 |
|
200 |
$id = absint( $id );
|
201 |
+
if ( !current_user_can( 'manage_bookings' ) ) {
|
202 |
return false;
|
203 |
}
|
204 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Plugin URL: http://themeofthecrop.com
|
|
5 |
Requires at Least: 3.8
|
6 |
Tested Up To: 4.4.2
|
7 |
Tags: restaurant, reservations, bookings, table bookings, restaurant reservation, table reservation
|
8 |
-
Stable tag: 1.5.
|
9 |
License: GPLv2 or later
|
10 |
Donate link: http://themeofthecrop.com
|
11 |
|
@@ -106,6 +106,9 @@ The addon, [Custom Fields for Restaurant Reservations](http://themeofthecrop.com
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
109 |
= 1.5.1 (2016-02-19) =
|
110 |
* Fix: increase security of the quicklink feature for confirming/rejecting bookings
|
111 |
* Fix: Improve wp-cli compatibility
|
@@ -260,6 +263,9 @@ The addon, [Custom Fields for Restaurant Reservations](http://themeofthecrop.com
|
|
260 |
|
261 |
== Upgrade Notice ==
|
262 |
|
|
|
|
|
|
|
263 |
= 1.5.1 =
|
264 |
This update increases security for the quick link feature to confirm/reject bookings from the admin notification email.
|
265 |
|
5 |
Requires at Least: 3.8
|
6 |
Tested Up To: 4.4.2
|
7 |
Tags: restaurant, reservations, bookings, table bookings, restaurant reservation, table reservation
|
8 |
+
Stable tag: 1.5.2
|
9 |
License: GPLv2 or later
|
10 |
Donate link: http://themeofthecrop.com
|
11 |
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 1.5.2 (2016-02-29) =
|
110 |
+
* Fix: booking managers can not confirm/reject bookings
|
111 |
+
|
112 |
= 1.5.1 (2016-02-19) =
|
113 |
* Fix: increase security of the quicklink feature for confirming/rejecting bookings
|
114 |
* Fix: Improve wp-cli compatibility
|
263 |
|
264 |
== Upgrade Notice ==
|
265 |
|
266 |
+
= 1.5.2 =
|
267 |
+
This update fixes a bug introduced in the last version which prevented Booking Managers from approving/rejecting reservations.
|
268 |
+
|
269 |
= 1.5.1 =
|
270 |
This update increases security for the quick link feature to confirm/reject bookings from the admin notification email.
|
271 |
|
restaurant-reservations.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Restaurant Reservations
|
4 |
* Plugin URI: http://themeofthecrop.com
|
5 |
* Description: Accept restaurant reservations and bookings online.
|
6 |
-
* Version: 1.5.
|
7 |
* Author: Theme of the Crop
|
8 |
* Author URI: http://themeofthecrop.com
|
9 |
* License: GNU General Public License v2.0 or later
|
3 |
* Plugin Name: Restaurant Reservations
|
4 |
* Plugin URI: http://themeofthecrop.com
|
5 |
* Description: Accept restaurant reservations and bookings online.
|
6 |
+
* Version: 1.5.2
|
7 |
* Author: Theme of the Crop
|
8 |
* Author URI: http://themeofthecrop.com
|
9 |
* License: GNU General Public License v2.0 or later
|