From 1222e52304fa52a8f236f102a926f2936225e513 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 15 Jul 2021 16:50:25 +0400 Subject: [PATCH] Editor: Set 'hide_empty' for the most used terms query --- .../editor/src/components/post-taxonomies/most-used-terms.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/editor/src/components/post-taxonomies/most-used-terms.js b/packages/editor/src/components/post-taxonomies/most-used-terms.js index aa5a8d7a3b69bc..af0a33f7749db3 100644 --- a/packages/editor/src/components/post-taxonomies/most-used-terms.js +++ b/packages/editor/src/components/post-taxonomies/most-used-terms.js @@ -20,6 +20,7 @@ const DEFAULT_QUERY = { per_page: MAX_MOST_USED_TERMS, orderby: 'count', order: 'desc', + hide_empty: true, _fields: 'id,name,count', };