save_account_details should check display name of current user.
Fixes #8856
This commit is contained in:
parent
7f247880cc
commit
ad691fe916
|
@ -171,7 +171,7 @@ class WC_Form_Handler {
|
|||
$user->user_email = $account_email;
|
||||
|
||||
// Prevent emails being displayed, or leave alone.
|
||||
$user->display_name = is_email( $user->display_name ) ? $user->first_name : $user->display_name;
|
||||
$user->display_name = is_email( $current_user->display_name ) ? $user->first_name : $current_user->display_name;
|
||||
|
||||
if ( empty( $account_first_name ) || empty( $account_last_name ) ) {
|
||||
wc_add_notice( __( 'Please enter your name.', 'woocommerce' ), 'error' );
|
||||
|
|
|
@ -160,6 +160,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
== Changelog ==
|
||||
|
||||
* Fix - Global text based attribute saving on product page.
|
||||
* Fix - save_account_details should check display name of current user.
|
||||
* Tweak - Allowed Zip/Post Codes description for Local Delivery.
|
||||
|
||||
= 2.4.4 - 14/08/2015 =
|
||||
|
|
Loading…
Reference in New Issue