Merge pull request #1077 from maxrice/master
fix typo preventing user_email from updating on checkout
This commit is contained in:
commit
7f0048480c
|
@ -422,7 +422,7 @@ class WC_Checkout {
|
||||||
|
|
||||||
// Special fields
|
// Special fields
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
case "billing_emaill" :
|
case "billing_email" :
|
||||||
if (!email_exists($this->posted[$key])) wp_update_user( array ( 'ID' => $user_id, 'user_email' => $this->posted[$key] ) ) ;
|
if (!email_exists($this->posted[$key])) wp_update_user( array ( 'ID' => $user_id, 'user_email' => $this->posted[$key] ) ) ;
|
||||||
break;
|
break;
|
||||||
case "billing_first_name" :
|
case "billing_first_name" :
|
||||||
|
|
Loading…
Reference in New Issue