Plugin Directory

Changeset 2619724


Ignore:
Timestamp:
10/25/2021 10:59:34 PM (4 years ago)
Author:
SmartSend
Message:

Tagging version 8.0.25 (resolved)

Location:
smart-send-logistics
Files:
5 edited
4 copied

Legend:

Unmodified
Added
Removed
  • smart-send-logistics/tags/8.0.25/includes/class-ss-shipping-shipment.php

    r2066580 r2619724  
    164164            );
    165165
    166             // If shipping phone number doesn't exist, try to get billing phone number
    167             if (!isset($shipping_address['phone']) && isset($billing_address['phone'])) {
    168                 $shipping_address['phone'] = $billing_address['phone'];
    169             }
    170 
    171             // If shipping email doesn't exist, try to get billing email
     166            // The shipping phone field was added in WooCommerce 5.6 but often added by hooks/plugins before that.
     167            // Note that the field is not shown on checkout per default but can be enabled by filters/plugins.
     168            // See: https://github.com/woocommerce/woocommerce/pull/30097#issuecomment-943114632
     169            if (isset($shipping_address['phone']) && $shipping_address['phone']) { // Field did not exist prior to WooCommerce 5.6
     170                $phone = $shipping_address['phone'];
     171            } elseif ($shipping_address['country'] == $billing_address['country']) { // Require as only local phone numbers is accepted
     172                $phone = $billing_address['phone'];
     173            } else {
     174                $phone = null;
     175            }
     176
     177            // The shipping email field does not exist in default WP installations but can be added by filters/hooks.
    172178            if (!isset($shipping_address['email']) && isset($billing_address['email'])) {
    173179                $shipping_address['email'] = $billing_address['email'];
     
    186192                ->setCity($shipping_address['city'] ?: null)
    187193                ->setCountry($shipping_address['country'] ?: null)
    188                 ->setSms($shipping_address['phone'] ?: null)
     194                ->setSms($phone ?: null)
    189195                ->setEmail($shipping_address['email'] ?: null);
    190196
  • smart-send-logistics/tags/8.0.25/includes/lib/Smartsend/Client.php

    r2061608 r2619724  
    400400            'timeout'    => $timeout,
    401401            'httpversion' => '1.1',
     402            'sslverify'  => apply_filters('smart_send_sslverify', true),
    402403        ));
    403404
  • smart-send-logistics/tags/8.0.25/readme.txt

    r2486879 r2619724  
    88Tags: smartsend, smart send, shipping, shipping label, pickup, pick-up, pakkelabel, pakkelabels, pakkeboks, pakkeshop, hente selv, døgnboks, postnord, post nord, post danmark, gls, swipbox, bring, dao, dao365, dao 365, carrier, pacsoft, yourgls, mybring, postage, shipping method, your-gls, my-bring, pacosft-online, pacsoftonline, denmark, sweeden, posten, norway, post
    99Requires at least: 3.0.1
    10 Tested up to: 5.7
    11 Stable tag: 8.0.23
     10Tested up to: 5.9
     11Stable tag: 8.0.25
    1212License: GNU General Public License v3.0
    1313License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1414WC requires at least: 3.0.0
    15 WC tested up to: 5.1
     15WC tested up to: 5.6
    1616Requires PHP: 5.6.0
    1717
     
    201201== Changelog ==
    202202
    203 = 8.0.23
     203= 8.0.25 =
     204* Fix issue with missing receiver phone on some WooCommerce versions (v5.6+)
     205
     206= 8.0.24 =
     207* Add filter smart_send_sslverify to fix ssl issues on older servers with incorrect SSL libraries
     208
     209= 8.0.23 =
    204210* Add WordPress 5.7 support
    205211* Add WooCommerce 5.1 support
  • smart-send-logistics/tags/8.0.25/smart-send-logistics.php

    r2486942 r2619724  
    77 * Author URI: https://www.smartsend.io
    88 * Text Domain: smart-send-logistics
    9  * Version: 8.0.23
     9 * Version: 8.0.25
    1010 * WC requires at least: 3.0.1
    1111 * WC tested up to: 5.1
     
    3535    {
    3636
    37         private $version = "8.0.23";
     37        private $version = "8.0.25";
    3838
    3939        /**
  • smart-send-logistics/trunk/includes/class-ss-shipping-shipment.php

    r2066580 r2619724  
    164164            );
    165165
    166             // If shipping phone number doesn't exist, try to get billing phone number
    167             if (!isset($shipping_address['phone']) && isset($billing_address['phone'])) {
    168                 $shipping_address['phone'] = $billing_address['phone'];
    169             }
    170 
    171             // If shipping email doesn't exist, try to get billing email
     166            // The shipping phone field was added in WooCommerce 5.6 but often added by hooks/plugins before that.
     167            // Note that the field is not shown on checkout per default but can be enabled by filters/plugins.
     168            // See: https://github.com/woocommerce/woocommerce/pull/30097#issuecomment-943114632
     169            if (isset($shipping_address['phone']) && $shipping_address['phone']) { // Field did not exist prior to WooCommerce 5.6
     170                $phone = $shipping_address['phone'];
     171            } elseif ($shipping_address['country'] == $billing_address['country']) { // Require as only local phone numbers is accepted
     172                $phone = $billing_address['phone'];
     173            } else {
     174                $phone = null;
     175            }
     176
     177            // The shipping email field does not exist in default WP installations but can be added by filters/hooks.
    172178            if (!isset($shipping_address['email']) && isset($billing_address['email'])) {
    173179                $shipping_address['email'] = $billing_address['email'];
     
    186192                ->setCity($shipping_address['city'] ?: null)
    187193                ->setCountry($shipping_address['country'] ?: null)
    188                 ->setSms($shipping_address['phone'] ?: null)
     194                ->setSms($phone ?: null)
    189195                ->setEmail($shipping_address['email'] ?: null);
    190196
  • smart-send-logistics/trunk/readme.txt

    r2607814 r2619724  
    99Requires at least: 3.0.1
    1010Tested up to: 5.9
    11 Stable tag: 8.0.24
     11Stable tag: 8.0.25
    1212License: GNU General Public License v3.0
    1313License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    201201== Changelog ==
    202202
     203= 8.0.25 =
     204* Fix issue with missing receiver phone on some WooCommerce versions (v5.6+)
     205
    203206= 8.0.24 =
    204207* Add filter smart_send_sslverify to fix ssl issues on older servers with incorrect SSL libraries
  • smart-send-logistics/trunk/smart-send-logistics.php

    r2607804 r2619724  
    77 * Author URI: https://www.smartsend.io
    88 * Text Domain: smart-send-logistics
    9  * Version: 8.0.24
     9 * Version: 8.0.25
    1010 * WC requires at least: 3.0.1
    1111 * WC tested up to: 5.1
     
    3535    {
    3636
    37         private $version = "8.0.24";
     37        private $version = "8.0.25";
    3838
    3939        /**
Note: See TracChangeset for help on using the changeset viewer.