[wp-trac] [WordPress Trac] #37545: `taxonomy` param of `WP_Term_Query` doesn't accept string value

WordPress Trac noreply at wordpress.org
Tue Aug 2 19:11:19 UTC 2016


#37545: `taxonomy` param of `WP_Term_Query` doesn't accept string value
--------------------------+-----------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.6
Component:  Taxonomy      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 ...even though it says it does.

 See https://wordpress.org/support/topic/passing-a-single-taxonomy-as-a
 -string-to-wp-term-query-returns-error

 I vaguely remember it being a conscious choice not to accept string values
 for `taxonomy`, but somehow it snuck into the documentation. In
 retrospect, I think it's fine (and consistent with other Query classes) to
 accept a string here.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37545>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list