Fix WP user first/last name being cleared after subscription management form submit
This commit is contained in:
@ -491,6 +491,7 @@ class Subscriber extends Model {
|
|||||||
unset($data['segments']);
|
unset($data['segments']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($subscriber === false) {
|
||||||
// fields that must exist
|
// fields that must exist
|
||||||
$not_null_fields = array(
|
$not_null_fields = array(
|
||||||
'first_name' => '',
|
'first_name' => '',
|
||||||
@ -501,6 +502,7 @@ class Subscriber extends Model {
|
|||||||
$data[$field] = $value;
|
$data[$field] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// custom fields
|
// custom fields
|
||||||
$custom_fields = array();
|
$custom_fields = array();
|
||||||
|
Reference in New Issue
Block a user