mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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))
|
||||
sort($categories);
|
||||
else
|
||||
$categories = array();
|
||||
|
||||
return $categories;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user