From 78d13aebb6ecd64812f9bd00d56e249f7ff93341 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 31 Mar 2005 05:00:39 +0000 Subject: [PATCH] You can't index an array with an object ref. Silly Ryan. git-svn-id: https://develop.svn.wordpress.org/trunk@2503 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 66779a037f..d8fde6af9c 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -623,7 +623,7 @@ function &get_category(&$category, $output = OBJECT) { if ( !isset($cache_categories[$category]) ) { $category = $wpdb->get_row("SELECT * FROM $wpdb->categories WHERE cat_ID = $category"); $category->category_id = $category->cat_ID; // Alias. - $cache_categories[$category] = & $category; + $cache_categories[$category->cat_ID] = & $category; } else { $category = & $cache_categories[$category]; }