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
This commit is contained in:
parent
4f183b4fe7
commit
b4cd7ba224
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue