Plugin Directory

Changeset 3014299


Ignore:
Timestamp:
12/26/2023 10:27:47 AM (2 years ago)
Author:
clickshipfc
Message:

Tested Up to Wordpress 6.4.2

Location:
clickship/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • clickship/trunk/includes/class-clickship-shipping.php

    r2802338 r3014299  
    153153            $desination['email'] = sanitize_text_field($customer_meta['billing_email'][0]);
    154154            $desination['phone'] = sanitize_text_field($customer_meta['billing_phone'][0]);
    155             $desination['name'] = sanitize_text_field($customer_meta['shipping_first_name'][0]) . ' ' . sanitize_text_field($customer_meta['shipping_last_name'][0]);
     155            $shipping_first_name_data = sanitize_text_field($customer_meta['shipping_first_name'][0]);
     156            if(!empty($shipping_first_name_data)){
     157                $shipping_first_name_result = $shipping_first_name_data.' ';
     158            }
     159            $desination['name'] = trim($shipping_first_name_result . sanitize_text_field($customer_meta['shipping_last_name'][0]));
    156160            $desination['company_name'] = sanitize_text_field($customer_meta['shipping_company'][0]);
    157161        } else {           
  • clickship/trunk/readme.txt

    r2802338 r3014299  
    33Tags: woocommerce, shipping, custom shipping, weight based shipping, woocommerce shipping, shipping methods, advanced shipping
    44Requires at least: 5.8
    5 Tested up to: 6.0
     5Tested up to: 6.4.2
    66Requires PHP: 7.2
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GNU General Public License v3.0
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.