[wp-trac] [WordPress Trac] #35265: get_the_terms return on non-existing term
WordPress Trac
noreply at wordpress.org
Wed Dec 30 16:40:09 UTC 2015
#35265: get_the_terms return on non-existing term
--------------------------+------------------------------
Reporter: tivnet | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by tivnet):
* component: Taxonomy => General
Comment:
{{{
* @return array|false|WP_Error Array of term objects on success, false if
there are no terms
* or the post does not exist, WP_Error on
failure.
}}}
This description suggests that `false` should be returned.
However, if I am not mistaken, I was getting `WP_Error` in this case
before 4.4
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35265#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list