Remove strict comparison from “is valid customer” logic.

Needed for the function to work in scheduled actions.
This commit is contained in:
Jeff Stieler 2019-04-29 17:04:40 -06:00
parent eecedfdba8
commit e350cfc898
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}