Remove strict comparison from “is valid customer” logic.
Needed for the function to work in scheduled actions.
This commit is contained in:
parent
eecedfdba8
commit
e350cfc898
|
@ -677,7 +677,7 @@ class WC_Admin_Reports_Customers_Data_Store extends WC_Admin_Reports_Data_Store
|
|||
protected static function is_valid_customer( $user_id ) {
|
||||
$customer = new WC_Customer( $user_id );
|
||||
|
||||
if ( $customer->get_id() !== $user_id ) {
|
||||
if ( $customer->get_id() != $user_id ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue