Plugin Directory

Changeset 2568761


Ignore:
Timestamp:
07/21/2021 04:41:55 AM (4 years ago)
Author:
dashlyapp
Message:

2.1.1 | Fixed code on user authentication

Location:
dashly
Files:
11 added
3 edited

Legend:

Unmodified
Added
Removed
  • dashly/trunk/dashly.php

    r2549674 r2568761  
    33 * Plugin Name: Dashly
    44 * Description: Dashly is a customer service, combining all instruments for marketing automation, sales and communications for your web app. Goal is to increase first and second sales.
    5  * Version: 2.1.0
     5 * Version: 2.1.1
    66 * Author: Dashly
    77 * Author URI: https://www.dashly.io
  • dashly/trunk/includes/class-dashlyhooks.php

    r2549674 r2568761  
    153153
    154154        $total = $order->get_subtotal();
    155         $name  = implode( ' ', array( trim( $order->get_billing_first_name() ), trim( $order->get_billing_last_name() ) ) );
     155        $name  = trim( implode( ' ', array( trim( $order->get_billing_first_name() ), trim( $order->get_billing_last_name() ) ) ) );
    156156        if ( ! isset( $name ) || 0 === strlen( $name ) ) {
    157             $name = implode( ' ', array( trim( $order->get_shipping_first_name() ), trim( $order->get_shipping_last_name() ) ) );
     157            $name = trim( implode( ' ', array( trim( $order->get_shipping_first_name() ), trim( $order->get_shipping_last_name() ) ) ) );
    158158        }
    159159        $phone = $order->get_billing_phone();
     
    394394            $dashly_uid = sanitize_text_field( wp_unslash( $_COOKIE['dashly_uid'] ) );
    395395            $settings   = self::get_settings();
    396             $name            = implode( ' ', trim( get_user_meta( $current_user->ID, 'billing_first_name', true ) ), trim( get_user_meta( $current_user->ID, 'billing_last_name', true ) ) );
     396            $name            = trim( implode( ' ', array( trim( get_user_meta( $current_user->ID, 'billing_first_name', true ) ), trim( get_user_meta( $current_user->ID, 'billing_last_name', true ) ) ) ) );
    397397            if ( ! isset( $name ) || 0 === strlen( $name ) ) {
    398                 $name = implode(' ', trim(get_user_meta($current_user->ID, 'shipping_first_name', true)), trim(get_user_meta($current_user->ID, 'shipping_last_name', true)));
     398                $name = trim( implode(' ', array( trim(get_user_meta($current_user->ID, 'shipping_first_name', true)), trim(get_user_meta($current_user->ID, 'shipping_last_name', true) ) ) ) );
    399399            }
    400400            $phone      = get_user_meta( $current_user->ID, 'billing_phone', true );
  • dashly/trunk/readme.txt

    r2549674 r2568761  
    44Requires at least: 4.2
    55Tested up to: 5.7.2
    6 Stable tag: 2.1.0
     6Stable tag: 2.1.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    152152* Action used to add our script to pages changed from wp_head to wp_enqueue_scripts
    153153* Fixed Cart property values sent to Dashly. Instead of "None" value it will now actually have product names. As it was supposed to.
     154
     155= 2.1.1 =
     156
     157* Fixed code error on user authentication
Note: See TracChangeset for help on using the changeset viewer.