Cast to array to avoid warning. fixes #3556
git-svn-id: https://develop.svn.wordpress.org/trunk@4716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2bbd69a21e
commit
827a32de28
@ -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
Block a user