diff --git a/src/classes/api/endpoints/class-tainacan-rest-items-controller.php b/src/classes/api/endpoints/class-tainacan-rest-items-controller.php index 87523f0c1..c882bae29 100644 --- a/src/classes/api/endpoints/class-tainacan-rest-items-controller.php +++ b/src/classes/api/endpoints/class-tainacan-rest-items-controller.php @@ -457,6 +457,7 @@ class REST_Items_Controller extends REST_Controller { } foreach($meta_query as $meta) { + $filter_type_component = false; if( !isset($meta['key']) || !isset($meta['value']) ) continue;