[wp-trac] [WordPress Trac] #32950: Return documentation is incorrect for wp_get_post_terms()
WordPress Trac
noreply at wordpress.org
Thu Jul 9 18:50:40 UTC 2015
#32950: Return documentation is incorrect for wp_get_post_terms()
--------------------------+----------------------------------------
Reporter: jeremyfelt | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 2.8
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: docs |
--------------------------+----------------------------------------
The documentation for `wp_get_post_terms()` specifies an `array()` as the
return value. However, it returns the value of `wp_get_object_terms()`,
which can return `WP_Error()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32950>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list