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:
ryan 2007-09-10 19:37:00 +00:00
parent ba6e8f4a92
commit d84f590203
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ function &get_categories($args = '') {
$taxonomy = 'link_category'; $taxonomy = 'link_category';
$categories = get_terms($taxonomy, $args); $categories = get_terms($taxonomy, $args);
foreach ( $categories as $category ) foreach ( array_keys($categories) as $k )
_make_cat_compat($category); _make_cat_compat($categories[$k]);
return $categories; return $categories;
} }