Changeset 2695427
- Timestamp:
- 03/17/2022 02:08:02 PM (4 years ago)
- Location:
- advanced-booking-calendar/trunk
- Files:
-
- 3 edited
-
advanced-booking-calendar.php (modified) (3 diffs)
-
backend/seasons-calendars.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-booking-calendar/trunk/advanced-booking-calendar.php
r2682086 r2695427 6 6 Author: Advanced Booking Calendar 7 7 Author URI: https://booking-calendar-plugin.com 8 Version: 1.7. 08 Version: 1.7.1 9 9 Text Domain: advanced-booking-calendar 10 10 Domain Path: /languages/ … … 154 154 dbDelta($seasonsAssignment); 155 155 } 156 add_option('abc_pluginversion', '17 0');156 add_option('abc_pluginversion', '171'); 157 157 add_option ('abc_email', get_option( 'admin_email' )); 158 158 add_option ('abc_bookingpage', 0); … … 626 626 } 627 627 628 if(get_option( 'abc_pluginversion' ) < '17 0') {629 update_option( 'abc_pluginversion', '17 0');628 if(get_option( 'abc_pluginversion' ) < '171') { 629 update_option( 'abc_pluginversion', '171'); 630 630 } 631 631 } -
advanced-booking-calendar/trunk/backend/seasons-calendars.php
r2503971 r2695427 66 66 $er = $wpdb->get_row('SELECT SUM(maxAvailabilities) as rooms FROM '.$wpdb->prefix.'abc_calendars', ARRAY_A); 67 67 $rooms = $er["rooms"]; 68 $er = $wpdb->get_row('SELECT * FROM '.$wpdb->prefix.'abc_calendars WHERE id = '. $_POST["id"], ARRAY_A);68 $er = $wpdb->get_row('SELECT * FROM '.$wpdb->prefix.'abc_calendars WHERE id = '.intval($_POST["id"]), ARRAY_A); 69 69 $rooms -= $er["maxAvailabilities"]; 70 70 $maxAvailabilities = intval($_POST["maxAvailabilities"]); … … 403 403 $notices .= __('Rooms could not be deleted. There are still active bookings.', 'advanced-booking-calendar' ); 404 404 }else{ 405 $notices .= sprintf( __('Rooms reduced to %s rooms', 'abc-bookings'), $_GET["room"]);405 $notices .= sprintf( __('Rooms reduced to %s rooms', 'abc-bookings'), esc_html($_GET["room"])); 406 406 } 407 407 } -
advanced-booking-calendar/trunk/readme.txt
r2682086 r2695427 4 4 Requires at least: 4.3.0 5 5 Tested up to: 5.9 6 Stable tag: 1.7. 06 Stable tag: 1.7.1 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 102 102 == Changelog == 103 103 104 = 1.7.1 = 105 * Fixed issues when changing an existing calendar in the backend. 106 104 107 = 1.7.0 = 105 108 * Fixed an issue in the Single Calendar.
Note: See TracChangeset
for help on using the changeset viewer.