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:
Ryan Boren 2007-09-10 19:37:00 +00:00
parent 605d95b344
commit 5bd5234f8d
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}