[wp-trac] [WordPress Trac] #27764: the_terms() - update phpDocs and add "array" to $taxonomy parameter

WordPress Trac noreply at wordpress.org
Mon Apr 21 06:34:55 UTC 2014


#27764: the_terms() - update phpDocs and add "array" to $taxonomy parameter
--------------------------+------------------------------
 Reporter:  ramiy         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  3.8.2
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:  docs
--------------------------+------------------------------
Changes (by DrewAPicture):

 * keywords:   => dev-feedback


Comment:

 After taking a closer look at this, I think the only way `the_terms()` is
 able to accept an array is by the cache get failing in
 `get_object_term_cache()`, thereby passing the array of taxonomies to
 `wp_get_object_terms()` in `get_the_terms()` instead.

 Seems like rather than continuing to allow an array to be passed in
 `the_terms()` we should explicitly check for a string in
 `get_the_terms()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27764#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list