From c3bc4f6ab2bcf30d6018b53ab112ee10a3c33a1d Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Fri, 4 Oct 2019 14:14:41 -0300 Subject: [PATCH] Brings name overriding back to filter-types... while we don't fix this. --- .../endpoints/class-tainacan-rest-filter-types-controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/endpoints/class-tainacan-rest-filter-types-controller.php b/src/api/endpoints/class-tainacan-rest-filter-types-controller.php index 65f2826ca..c0fb0fffc 100644 --- a/src/api/endpoints/class-tainacan-rest-filter-types-controller.php +++ b/src/api/endpoints/class-tainacan-rest-filter-types-controller.php @@ -59,6 +59,7 @@ class REST_Filter_Types_Controller extends REST_Controller { $filter_type = new $name(); $filter_arr = $filter_type->_toArray(); + $filter_arr['name'] = $item; return $filter_arr; }