[wp-trac] [WordPress Trac] #27720: post_type argument needed for wp_terms
WordPress Trac
noreply at wordpress.org
Mon Apr 28 01:38:33 UTC 2014
#27720: post_type argument needed for wp_terms
-----------------------------+-------------------------
Reporter: neonWired | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 3.8.1
Severity: normal | Resolution: maybelater
Keywords: | Focuses:
-----------------------------+-------------------------
Changes (by wonderboymusic):
* status: new => closed
* resolution: => maybelater
* milestone: Awaiting Review =>
Comment:
There is no function called `wp_terms()`... perhaps you mean
`the_terms()`?
`the_terms()` is problematic because it already has 5 arguments. You might
want to check `wp_get_object_terms()` instead.
Because we maintain backwards compatibility, `the_terms()` will always
(probably!) have 5 arguments, but we shouldn't add a 6th. Functions that
have 6 arguments indicate bad design. In almost every case, a function
like that should have have been `saner_func( $args = array() )`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27720#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list