Skip to content

Commit

Permalink
Editor: Set 'hide_empty' for the most used terms query (#33457)
Browse files Browse the repository at this point in the history
Don't include terms that aren't assigned to any posts as "most used" terms.
  • Loading branch information
Mamaduka authored Jul 16, 2021
1 parent fb33713 commit 86cd187
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const DEFAULT_QUERY = {
per_page: MAX_MOST_USED_TERMS,
orderby: 'count',
order: 'desc',
hide_empty: true,
_fields: 'id,name,count',
};

Expand Down

0 comments on commit 86cd187

Please sign in to comment.