diff --git a/wp-includes/category.php b/wp-includes/category.php index 6025a6740f..7f471618eb 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -294,7 +294,7 @@ function _pad_category_counts($type, &$categories) { } // Transfer the touched cells - foreach ( $cat_items as $id => $items ) + foreach ( (array) $cat_items as $id => $items ) if ( isset($cats[$id]) ) $cats[$id]->{'link' == $type ? 'link_count' : 'category_count'} = count($items); }