Make customer name empty string by default instead of null

This commit is contained in:
Joshua Flowers 2019-04-11 19:09:29 +08:00
parent 5838e2ab48
commit f213f5cb66
1 changed files with 2 additions and 2 deletions

View File

@ -514,8 +514,8 @@ class WC_Admin_Reports_Customers_Data_Store extends WC_Admin_Reports_Data_Store
* @return array
*/
public static function get_customer_name( $user_id = 0, $order = null ) {
$first_name = null;
$last_name = null;
$first_name = '';
$last_name = '';
if (
$user_id &&