Changeset 1389 for trunk/wp-includes/template-functions-category.php
- Timestamp:
- 06/06/2004 07:21:58 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-category.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r1385 r1389 313 313 WHERE post_status = 'publish' $exclusions 314 314 GROUP BY category_id"); 315 foreach ($cat_counts as $cat_count) { 316 if (1 != intval($hide_empty) || $cat_count > 0) { 317 $category_posts["$cat_count->cat_ID"] = $cat_count->cat_count; 318 } 319 } 315 if (! empty($cat_counts)) { 316 foreach ($cat_counts as $cat_count) { 317 if (1 != intval($hide_empty) || $cat_count > 0) { 318 $category_posts["$cat_count->cat_ID"] = $cat_count->cat_count; 319 } 320 } 321 } 320 322 } 321 323
Note: See TracChangeset
for help on using the changeset viewer.