Make sure get_the_category() returns an array.
git-svn-id: https://develop.svn.wordpress.org/trunk@2387 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a06446a1b4
commit
4aa9fdc013
|
@ -20,6 +20,8 @@ function get_the_category($id = false) {
|
||||||
|
|
||||||
if (!empty($categories))
|
if (!empty($categories))
|
||||||
sort($categories);
|
sort($categories);
|
||||||
|
else
|
||||||
|
$categories = array();
|
||||||
|
|
||||||
return $categories;
|
return $categories;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue