Cast to array to avoid warning. fixes #3556
git-svn-id: http://svn.automattic.com/wordpress/trunk@4716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
741ea65d3b
commit
cc281016ff
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue