From ef020f57e515bba54620d0afe00fc67af07d3f4b Mon Sep 17 00:00:00 2001 From: Nedim Uka Date: Thu, 25 Oct 2018 11:15:32 +0200 Subject: [PATCH] Include empty template category in search --- .../admin/template/class-wiaas-template-admin-ajax.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/plugins/wiaas/includes/admin/template/class-wiaas-template-admin-ajax.php b/backend/app/plugins/wiaas/includes/admin/template/class-wiaas-template-admin-ajax.php index 18e0ab5..bd302b8 100644 --- a/backend/app/plugins/wiaas/includes/admin/template/class-wiaas-template-admin-ajax.php +++ b/backend/app/plugins/wiaas/includes/admin/template/class-wiaas-template-admin-ajax.php @@ -83,7 +83,8 @@ class Wiaas_Template_Admin_Ajax { $terms = get_terms(array( 'taxonomy' => 'template_category', - 'name__like' => $term + 'name__like' => $term, + 'hide_empty' => false )); foreach ($terms as $t) {