[wp-trac] [WordPress Trac] #36182: Incorrect `@return` documentation for `wp_set_object_terms()` and friends
WordPress Trac
noreply at wordpress.org
Wed Mar 9 16:13:53 UTC 2016
#36182: Incorrect `@return` documentation for `wp_set_object_terms()` and friends
--------------------------+-----------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Taxonomy | Version:
Severity: normal | Keywords:
Focuses: docs |
--------------------------+-----------------
`wp_set_object_terms()` and its wrappers state in their doc blocks that
the return value is an array of term IDs. This is incorrect. The return
value is, for better or for worse, term taxonomy IDs. The distinction
matters less as shared terms start to go away, but the numbers will be
perpetually different for legacy terms (or cases where shared terms have
not been split) so the documentation should be fixed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36182>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list