Changeset 2481335
- Timestamp:
- 02/25/2021 10:25:32 AM (5 years ago)
- Location:
- woocommerce-accommodation-bookings
- Files:
-
- 10 edited
- 1 copied
-
tags/1.1.23 (copied) (copied from woocommerce-accommodation-bookings/trunk)
-
tags/1.1.23/changelog.txt (modified) (1 diff)
-
tags/1.1.23/includes/admin/class-wc-accommodation-booking-admin-panels.php (modified) (2 diffs)
-
tags/1.1.23/languages/woocommerce-accommodation-bookings.pot (modified) (1 diff)
-
tags/1.1.23/readme.txt (modified) (2 diffs)
-
tags/1.1.23/woocommerce-accommodation-bookings.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/admin/class-wc-accommodation-booking-admin-panels.php (modified) (2 diffs)
-
trunk/languages/woocommerce-accommodation-bookings.pot (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-accommodation-bookings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-accommodation-bookings/tags/1.1.23/changelog.txt
r2407312 r2481335 1 1 *** Changelog *** 2 3 = 1.1.23 - 2021-02-25 = 4 * Fix - Dev - Fix: Add casts to float before applying the 'abs' function to potentially empty strings for compatibility with PHP8. 5 * Tweak - WC 5.0 compatibility. 2 6 3 7 = 1.1.22 - 2020-10-27 = -
woocommerce-accommodation-bookings/tags/1.1.23/includes/admin/class-wc-accommodation-booking-admin-panels.php
r2390281 r2481335 270 270 // Rates 271 271 $pricing = array(); 272 $original_base_cost = abs( get_post_meta( $post_id, '_wc_booking_base_cost', true ) );272 $original_base_cost = abs( (float) get_post_meta( $post_id, '_wc_booking_base_cost', true ) ); 273 273 274 274 $row_size = isset( $_POST[ 'wc_accommodation_booking_pricing_type' ] ) ? sizeof( $_POST[ 'wc_accommodation_booking_pricing_type' ] ) : 0; … … 276 276 $pricing[ $i ]['base_cost'] = $pricing[ $i ]['cost'] = 0; 277 277 $pricing[ $i ]['type'] = wc_clean( $_POST[ 'wc_accommodation_booking_pricing_type' ][ $i ] ); 278 $new_cost = abs( wc_clean( $_POST[ 'wc_accommodation_booking_pricing_block_cost' ][ $i ] ) );278 $new_cost = abs( (float) wc_clean( $_POST[ 'wc_accommodation_booking_pricing_block_cost' ][ $i ] ) ); 279 279 $pricing[ $i ]['base_modifier'] = $pricing[$i]['modifier'] = $new_cost > $original_base_cost ? 'plus' : 'minus'; 280 280 $pricing[ $i ]['cost'] = abs( $new_cost - $original_base_cost ); -
woocommerce-accommodation-bookings/tags/1.1.23/languages/woocommerce-accommodation-bookings.pot
r2407312 r2481335 1 # Copyright (C) 202 0WooCommerce1 # Copyright (C) 2021 WooCommerce 2 2 # This file is distributed under the GNU General Public License v3.0. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Accommodation Bookings 1.1.2 2\n"5 "Project-Id-Version: WooCommerce Accommodation Bookings 1.1.23\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/woocommerce-accommodation-bookings\n" 8 "POT-Creation-Date: 202 0-10-27 07:06:10+00:00\n"8 "POT-Creation-Date: 2021-02-25 10:25:03+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "PO-Revision-Date: 202 0-MO-DA HO:MI+ZONE\n"12 "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 14 14 "Language-Team: LANGUAGE <[email protected]>\n" -
woocommerce-accommodation-bookings/tags/1.1.23/readme.txt
r2407312 r2481335 4 4 Requires at least: 4.1 5 5 Tested up to: 5.5 6 Stable tag: 1.1.2 26 Stable tag: 1.1.23 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 37 37 == Changelog == 38 38 39 = 1.1.23 - 2021-02-25 = 40 * Fix - Dev - Fix: Add casts to float before applying the 'abs' function to potentially empty strings for compatibility with PHP8. 41 * Tweak - WC 5.0 compatibility. 42 39 43 = 1.1.22 - 2020-10-27 = 40 44 * Tweak - WC 4.6 compatibility. -
woocommerce-accommodation-bookings/tags/1.1.23/woocommerce-accommodation-bookings.php
r2407312 r2481335 4 4 * Plugin URI: https://woocommerce.com/products/woocommerce-accommodation-bookings/ 5 5 * Description: An accommodations add-on for the WooCommerce Bookings extension. 6 * Version: 1.1.2 26 * Version: 1.1.23 7 7 * Author: WooCommerce 8 8 * Author URI: https://woocommerce.com 9 9 * Text Domain: woocommerce-accommodation-bookings 10 10 * Domain Path: /languages 11 * WC tested up to: 4.611 * WC tested up to: 5.0 12 12 * WC requires at least: 2.6 13 13 * 14 * Copyright: © 202 0WooCommerce14 * Copyright: © 2021 WooCommerce 15 15 * License: GNU General Public License v3.0 16 16 * License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 21 21 } 22 22 23 define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.1.2 2' ); // WRCS: DEFINED_VERSION.23 define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.1.23' ); // WRCS: DEFINED_VERSION. 24 24 25 25 require_once( 'includes/class-wc-accommodation-bookings-plugin.php' ); -
woocommerce-accommodation-bookings/trunk/changelog.txt
r2407312 r2481335 1 1 *** Changelog *** 2 3 = 1.1.23 - 2021-02-25 = 4 * Fix - Dev - Fix: Add casts to float before applying the 'abs' function to potentially empty strings for compatibility with PHP8. 5 * Tweak - WC 5.0 compatibility. 2 6 3 7 = 1.1.22 - 2020-10-27 = -
woocommerce-accommodation-bookings/trunk/includes/admin/class-wc-accommodation-booking-admin-panels.php
r2390281 r2481335 270 270 // Rates 271 271 $pricing = array(); 272 $original_base_cost = abs( get_post_meta( $post_id, '_wc_booking_base_cost', true ) );272 $original_base_cost = abs( (float) get_post_meta( $post_id, '_wc_booking_base_cost', true ) ); 273 273 274 274 $row_size = isset( $_POST[ 'wc_accommodation_booking_pricing_type' ] ) ? sizeof( $_POST[ 'wc_accommodation_booking_pricing_type' ] ) : 0; … … 276 276 $pricing[ $i ]['base_cost'] = $pricing[ $i ]['cost'] = 0; 277 277 $pricing[ $i ]['type'] = wc_clean( $_POST[ 'wc_accommodation_booking_pricing_type' ][ $i ] ); 278 $new_cost = abs( wc_clean( $_POST[ 'wc_accommodation_booking_pricing_block_cost' ][ $i ] ) );278 $new_cost = abs( (float) wc_clean( $_POST[ 'wc_accommodation_booking_pricing_block_cost' ][ $i ] ) ); 279 279 $pricing[ $i ]['base_modifier'] = $pricing[$i]['modifier'] = $new_cost > $original_base_cost ? 'plus' : 'minus'; 280 280 $pricing[ $i ]['cost'] = abs( $new_cost - $original_base_cost ); -
woocommerce-accommodation-bookings/trunk/languages/woocommerce-accommodation-bookings.pot
r2407312 r2481335 1 # Copyright (C) 202 0WooCommerce1 # Copyright (C) 2021 WooCommerce 2 2 # This file is distributed under the GNU General Public License v3.0. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Accommodation Bookings 1.1.2 2\n"5 "Project-Id-Version: WooCommerce Accommodation Bookings 1.1.23\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/woocommerce-accommodation-bookings\n" 8 "POT-Creation-Date: 202 0-10-27 07:06:10+00:00\n"8 "POT-Creation-Date: 2021-02-25 10:25:03+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "PO-Revision-Date: 202 0-MO-DA HO:MI+ZONE\n"12 "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 14 14 "Language-Team: LANGUAGE <[email protected]>\n" -
woocommerce-accommodation-bookings/trunk/readme.txt
r2407312 r2481335 4 4 Requires at least: 4.1 5 5 Tested up to: 5.5 6 Stable tag: 1.1.2 26 Stable tag: 1.1.23 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 37 37 == Changelog == 38 38 39 = 1.1.23 - 2021-02-25 = 40 * Fix - Dev - Fix: Add casts to float before applying the 'abs' function to potentially empty strings for compatibility with PHP8. 41 * Tweak - WC 5.0 compatibility. 42 39 43 = 1.1.22 - 2020-10-27 = 40 44 * Tweak - WC 4.6 compatibility. -
woocommerce-accommodation-bookings/trunk/woocommerce-accommodation-bookings.php
r2407312 r2481335 4 4 * Plugin URI: https://woocommerce.com/products/woocommerce-accommodation-bookings/ 5 5 * Description: An accommodations add-on for the WooCommerce Bookings extension. 6 * Version: 1.1.2 26 * Version: 1.1.23 7 7 * Author: WooCommerce 8 8 * Author URI: https://woocommerce.com 9 9 * Text Domain: woocommerce-accommodation-bookings 10 10 * Domain Path: /languages 11 * WC tested up to: 4.611 * WC tested up to: 5.0 12 12 * WC requires at least: 2.6 13 13 * 14 * Copyright: © 202 0WooCommerce14 * Copyright: © 2021 WooCommerce 15 15 * License: GNU General Public License v3.0 16 16 * License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 21 21 } 22 22 23 define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.1.2 2' ); // WRCS: DEFINED_VERSION.23 define( 'WC_ACCOMMODATION_BOOKINGS_VERSION', '1.1.23' ); // WRCS: DEFINED_VERSION. 24 24 25 25 require_once( 'includes/class-wc-accommodation-bookings-plugin.php' );
Note: See TracChangeset
for help on using the changeset viewer.