Make sure get_the_category() returns an array.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6bb1b724ab
commit
4ae13d2448
|
@ -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