From d84f590203e5c7fc880a9906587a88c7eabf5a5f Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 10 Sep 2007 19:37:00 +0000 Subject: [PATCH] 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 --- wp-includes/category.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/category.php b/wp-includes/category.php index cd12e591fe..9fa9d1f156 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -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; }