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
11 KiB
11 KiB