Files
WordPress/wp-includes
Boone Gorges cac6d65780 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.
Built from https://develop.svn.wordpress.org/trunk@36988


git-svn-id: http://core.svn.wordpress.org/trunk@36955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-14 13:53:28 +00:00
..
2016-03-14 01:39:26 +00:00
2015-07-23 10:03:24 +00:00
2015-06-28 00:17:25 +00:00
2016-03-14 00:53:26 +00:00
2016-03-10 05:37:27 +00:00
2015-06-28 15:27:24 +00:00
2016-03-14 01:39:26 +00:00
2015-09-26 07:04:28 +00:00
2016-03-10 05:37:27 +00:00
2016-03-10 05:37:27 +00:00
2015-12-06 21:50:25 +00:00
2016-03-10 05:37:27 +00:00
2016-03-10 05:37:27 +00:00
2016-03-10 05:37:27 +00:00
2015-06-16 20:01:25 +00:00
2016-02-24 22:12:25 +00:00
2016-03-14 00:53:26 +00:00
2016-03-10 05:37:27 +00:00