wordpress-develop/tests/phpunit/tests/category
Boone Gorges 0fdf0d4566 Improve error handling in get_categories().
When passed an invalid `'taxonomy'`, `get_terms()` will return a `WP_Error`
object. This object should not be blindly cast to an array. Instead, an empty
array should be returned, to indicate that no matching terms have been found.

Props virgodesign, sebastian.pisula.
Fixes #36227.

git-svn-id: https://develop.svn.wordpress.org/trunk@36988 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-14 13:52:14 +00:00
..
getCategories.php Improve error handling in get_categories(). 2016-03-14 13:52:14 +00:00
getCategoryParents.php Make sure an assertion takes place in 'visited' test for get_category_parents(). 2016-02-29 20:30:04 +00:00
wpListCategories.php Add current-cat-ancestor class to ancestor items in wp_list_categories(). 2015-12-18 18:37:41 +00:00