Plugin Directory

Changeset 2682260


Ignore:
Timestamp:
02/21/2022 09:14:06 AM (4 years ago)
Author:
shindhl
Message:

Release 2.8.3 (DHL Parcel)

  • DHL Parcel: Fixed a deprecation warning on sorted package sized in the label creation screen for PHP 8 compatibility
  • DHL Parcel: Fixed a reference warning in the label creation screen for PHP 8 compatibility
Location:
dhl-for-woocommerce
Files:
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • dhl-for-woocommerce/tags/2.8.3/dhlpwoocommerce/README.md

    r2669998 r2682260  
    11# DHL Parcel plugin for WooCommerce
     2 
     3v1.3.18
     4## Changes
     5- Added a new available action hook for label creation
    26 
    37v1.3.17
  • dhl-for-woocommerce/tags/2.8.3/dhlpwoocommerce/dhlpwoocommerce.php

    r2669998 r2682260  
    55Description: This is the official DHL Parcel for WooCommerce plugin.
    66Author: DHL Parcel
    7 Version: 1.3.18
     7Version: 1.3.19
    88WC requires at least: 3.0.0
    99WC 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  
    3333        if ($one->max_weight_kg === $two->max_weight_kg) {
    3434            // 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;
    3741        }
    38         return $one->max_weight_kg > $two->max_weight_kg;
     42        return $one->max_weight_kg > $two->max_weight_kg ? 1 : -1;
    3943    }
    4044
  • dhl-for-woocommerce/tags/2.8.3/dhlpwoocommerce/includes/model/service/class-dhlpwc-model-service-label-metabox.php

    r2669998 r2682260  
    252252        $view = new DHLPWC_Template('order.meta.form.sizes-headline');
    253253        $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        );
    257260
    258261        $size_view = $view->render(array(
  • dhl-for-woocommerce/tags/2.8.3/pr-dhl-woocommerce.php

    r2682241 r2682260  
    88 * Text Domain: dhl-for-woocommerce
    99 * Domain Path: /lang
    10  * Version: 2.8.2
     10 * Version: 2.8.3
    1111 * WC requires at least: 3.0
    1212 * WC tested up to: 5.6
     
    3636class PR_DHL_WC {
    3737
    38     private $version = "2.8.2";
     38    private $version = "2.8.3";
    3939
    4040    /**
  • dhl-for-woocommerce/tags/2.8.3/readme.txt

    r2682241 r2682260  
    66Requires PHP: 5.6
    77Tested up to: 5.9
    8 Stable tag: 2.8.2
     8Stable tag: 2.8.3
    99WC requires at least: 3.0
    1010WC tested up to: 6.1
     
    7676
    7777== 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
    7882 
    7983= 2.8.2 =
  • dhl-for-woocommerce/trunk/readme.txt

    r2682241 r2682260  
    66Requires PHP: 5.6
    77Tested up to: 4.8.2
    8 Stable tag: 2.8.2
     8Stable tag: 2.8.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.