[wp-trac] [WordPress Trac] #26234: Passing array of taxonomies to the_terms() triggers "array to string" conversion warning
WordPress Trac
noreply at wordpress.org
Fri Sep 18 01:36:56 UTC 2015
#26234: Passing array of taxonomies to the_terms() triggers "array to string"
conversion warning
------------------------------------------+----------------------
Reporter: johnjamesjacoby | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 2.2
Severity: normal | Resolution: wontfix
Keywords: needs-unit-tests needs-patch | Focuses:
------------------------------------------+----------------------
Changes (by wonderboymusic):
* status: new => closed
* resolution: => wontfix
* milestone: Future Release =>
Comment:
The docs for `the_terms()` and - `get_the_term_list()`,
`get_the_terms()`, and `get_object_term_cache()` (which are written in the
context of only one taxonomy) - all take `string` as the value of
`$taxonomy`.
This would result in some bizarre churn in those funcs, just so they can
pass an array to `wp_get_object_terms()` down the chain - I vote no
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26234#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list