mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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
Block a user