[wp-trac] [WordPress Trac] #34723: Warning in get_the_terms() because of non-array
WordPress Trac
noreply at wordpress.org
Thu Dec 10 03:21:55 UTC 2015
#34723: Warning in get_the_terms() because of non-array
--------------------------------------+--------------------
Reporter: mrppp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4.1
Component: Taxonomy | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------
Comment (by boonebgorges):
The `array_map()` error is new (introduced in [35032], as noted by
@stephenharris), but as @swissspidy notes, it appears to be an old bug
that `get_the_terms()` can accidentally cache a `WP_Error` object. Whoops.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34723#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list