From b4cd7ba2248d00d1193161a032ff4dae47853eb8 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 18 Aug 2007 17:21:51 +0000 Subject: [PATCH] Add back compat to get_the_category. Props nbachiyski. fixes #4771 git-svn-id: http://svn.automattic.com/wordpress/trunk@5899 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 8948c31d64..366cd85532 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -75,6 +75,10 @@ function get_the_category($id = false) { else $categories = array(); + foreach(array_keys($categories) as $key) { + _make_cat_compat($categories[$key]); + } + return $categories; }