Add back compat to get_the_category. Props nbachiyski. fixes #4771
git-svn-id: https://develop.svn.wordpress.org/trunk@5899 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
635b23fc1c
commit
df22fd9a58
|
@ -75,6 +75,10 @@ function get_the_category($id = false) {
|
||||||
else
|
else
|
||||||
$categories = array();
|
$categories = array();
|
||||||
|
|
||||||
|
foreach(array_keys($categories) as $key) {
|
||||||
|
_make_cat_compat($categories[$key]);
|
||||||
|
}
|
||||||
|
|
||||||
return $categories;
|
return $categories;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue