Fix bug when filtering for customer_id=0. (#36216)
This commit is contained in:
commit
b15639ee6a
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Fix bug when filtering for customer_id=0.
|
|
@ -279,7 +279,7 @@ class WC_REST_Orders_Controller extends WC_REST_Orders_V2_Controller {
|
|||
? $request['customer']
|
||||
: null;
|
||||
|
||||
if ( $cot_customer ) {
|
||||
if ( ! is_null( $cot_customer ) ) {
|
||||
unset( $request['customer'] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue