References don't work inside foreach in php4. Props mdawaffe.
git-svn-id: https://develop.svn.wordpress.org/trunk@6071 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
605d95b344
commit
5bd5234f8d
@ -20,8 +20,8 @@ function &get_categories($args = '') {
|
||||
$taxonomy = 'link_category';
|
||||
$categories = get_terms($taxonomy, $args);
|
||||
|
||||
foreach ( $categories as $category )
|
||||
_make_cat_compat($category);
|
||||
foreach ( array_keys($categories) as $k )
|
||||
_make_cat_compat($categories[$k]);
|
||||
|
||||
return $categories;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user