Changeset 2682260
- Timestamp:
- 02/21/2022 09:14:06 AM (4 years ago)
- Location:
- dhl-for-woocommerce
- Files:
-
- 7 edited
- 1 copied
-
tags/2.8.3 (copied) (copied from dhl-for-woocommerce/tags/2.8.2)
-
tags/2.8.3/dhlpwoocommerce/README.md (modified) (1 diff)
-
tags/2.8.3/dhlpwoocommerce/dhlpwoocommerce.php (modified) (1 diff)
-
tags/2.8.3/dhlpwoocommerce/includes/model/logic/class-dhlpwc-model-logic-access-control-capabilities.php (modified) (1 diff)
-
tags/2.8.3/dhlpwoocommerce/includes/model/service/class-dhlpwc-model-service-label-metabox.php (modified) (1 diff)
-
tags/2.8.3/pr-dhl-woocommerce.php (modified) (2 diffs)
-
tags/2.8.3/readme.txt (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dhl-for-woocommerce/tags/2.8.3/dhlpwoocommerce/README.md
r2669998 r2682260 1 1 # DHL Parcel plugin for WooCommerce 2 3 v1.3.18 4 ## Changes 5 - Added a new available action hook for label creation 2 6 3 7 v1.3.17 -
dhl-for-woocommerce/tags/2.8.3/dhlpwoocommerce/dhlpwoocommerce.php
r2669998 r2682260 5 5 Description: This is the official DHL Parcel for WooCommerce plugin. 6 6 Author: DHL Parcel 7 Version: 1.3.1 87 Version: 1.3.19 8 8 WC requires at least: 3.0.0 9 9 WC tested up to: 4.3.3 -
dhl-for-woocommerce/tags/2.8.3/dhlpwoocommerce/includes/model/logic/class-dhlpwc-model-logic-access-control-capabilities.php
r2519608 r2682260 33 33 if ($one->max_weight_kg === $two->max_weight_kg) { 34 34 // Weight is the same, sort by dimensions 35 return $one->dimensions->max_length_cm * $one->dimensions->max_height_cm * $one->dimensions->max_width_cm > 36 $two->dimensions->max_length_cm * $two->dimensions->max_height_cm * $two->dimensions->max_width_cm; 35 $dimension_one = $one->dimensions->max_length_cm * $one->dimensions->max_height_cm * $one->dimensions->max_width_cm; 36 $dimension_two = $two->dimensions->max_length_cm * $two->dimensions->max_height_cm * $two->dimensions->max_width_cm; 37 if ($dimension_one === $dimension_two) { 38 return 0; 39 } 40 return $dimension_one > $dimension_two ? 1 : -1; 37 41 } 38 return $one->max_weight_kg > $two->max_weight_kg ;42 return $one->max_weight_kg > $two->max_weight_kg ? 1 : -1; 39 43 } 40 44 -
dhl-for-woocommerce/tags/2.8.3/dhlpwoocommerce/includes/model/service/class-dhlpwc-model-service-label-metabox.php
r2669998 r2682260 252 252 $view = new DHLPWC_Template('order.meta.form.sizes-headline'); 253 253 $option_texts = $selected_options; 254 array_walk($option_texts, function(&$value, &$key) { 255 $value = DHLPWC_Model_Service_Translation::instance()->option($value); 256 }); 254 $option_texts = array_map( 255 function ($value) { 256 return DHLPWC_Model_Service_Translation::instance()->option($value); 257 }, 258 $option_texts 259 ); 257 260 258 261 $size_view = $view->render(array( -
dhl-for-woocommerce/tags/2.8.3/pr-dhl-woocommerce.php
r2682241 r2682260 8 8 * Text Domain: dhl-for-woocommerce 9 9 * Domain Path: /lang 10 * Version: 2.8. 210 * Version: 2.8.3 11 11 * WC requires at least: 3.0 12 12 * WC tested up to: 5.6 … … 36 36 class PR_DHL_WC { 37 37 38 private $version = "2.8. 2";38 private $version = "2.8.3"; 39 39 40 40 /** -
dhl-for-woocommerce/tags/2.8.3/readme.txt
r2682241 r2682260 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.9 8 Stable tag: 2.8. 28 Stable tag: 2.8.3 9 9 WC requires at least: 3.0 10 10 WC tested up to: 6.1 … … 76 76 77 77 == Changelog == 78 79 = 2.8.3 = 80 * DHL Parcel: Fixed a deprecation warning on sorted package sized in the label creation screen for PHP 8 compatibility 81 * DHL Parcel: Fixed a reference warning in the label creation screen for PHP 8 compatibility 78 82 79 83 = 2.8.2 = -
dhl-for-woocommerce/trunk/readme.txt
r2682241 r2682260 6 6 Requires PHP: 5.6 7 7 Tested up to: 4.8.2 8 Stable tag: 2.8. 28 Stable tag: 2.8.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.