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 and desrosj committed Aug 30, 2021
1 parent bdaa7b6 commit 336aa2a
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 336aa2a

Please sign in to comment.