mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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
|
// Transfer the touched cells
|
||||||
foreach ( $cat_items as $id => $items )
|
foreach ( (array) $cat_items as $id => $items )
|
||||||
if ( isset($cats[$id]) )
|
if ( isset($cats[$id]) )
|
||||||
$cats[$id]->{'link' == $type ? 'link_count' : 'category_count'} = count($items);
|
$cats[$id]->{'link' == $type ? 'link_count' : 'category_count'} = count($items);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user