[wp-trac] [WordPress Trac] #34723: Warning in get_the_terms() because of non-array
WordPress Trac
noreply at wordpress.org
Thu Dec 17 23:38:53 UTC 2015
#34723: Warning in get_the_terms() because of non-array
-----------------------------------+---------------------------
Reporter: mrppp | Owner: boonebgorges
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.4.1
Component: Taxonomy | Version: 4.4
Severity: normal | Resolution:
Keywords: fixed-major has-patch | Focuses:
-----------------------------------+---------------------------
Comment (by stephenharris):
It doesn't hurt to check, though I don't think this should happen: If
`get_object_term_cache()` returns `false` then `$terms` is replaced by the
value returned by `wp_get_object_terms()` (an array or `WP_Error`).
So `get_object_term_cache()` would have to return `true` or otherwise one
of those functions would have to return a undocumented value type.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34723#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list