You can't index an array with an object ref. Silly Ryan.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c30bcbb7d
commit
d8ba4fd2ef
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue