mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
`wp_get_object_terms()` can return a `WP_Error` object. As such, the `get_the_terms()` cache wrapper should handle them properly. To wit: * Don't try to map an error object to `get_term()`. Introduced in [35032]. * Don't cache an error object as taxonomy relationships. Introduced in at least [16487], maybe earlier. Props stephenharris. Fixes #34723. git-svn-id: https://develop.svn.wordpress.org/trunk@35850 602fd350-edb4-49c9-b593-d223f7449a82