References don't work inside foreach in php4. Props mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ba6e8f4a92
commit
d84f590203
|
@ -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