forked from mirror/_s
cool-cats: only fetch the ids to limit footprint
We don't really care much about the returned; all we want is the count so there's no point in fetching all the category data.
This commit is contained in:
parent
43241a811d
commit
ad2a2cd9b9
|
@ -103,6 +103,7 @@ function _s_categorized_blog() {
|
||||||
// Create an array of all the categories that are attached to posts.
|
// Create an array of all the categories that are attached to posts.
|
||||||
$all_the_cool_cats = get_categories( array(
|
$all_the_cool_cats = get_categories( array(
|
||||||
'hide_empty' => 1,
|
'hide_empty' => 1,
|
||||||
|
'fields' => 'ids',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
// Count the number of categories that are attached to the posts.
|
// Count the number of categories that are attached to the posts.
|
||||||
|
|
Reference in New Issue