[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:30:57 UTC 2016
#37545: `taxonomy` param of `WP_Term_Query` doesn't accept string value
-------------------------------------------+---------------------------
Reporter: boonebgorges | Owner: boonebgorges
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.6
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch commit dev-reviewed | Focuses:
-------------------------------------------+---------------------------
Changes (by ocean90):
* keywords: has-patch needs-review => has-patch commit dev-reviewed
Comment:
[attachment:37545.diff] looks good to me. Core does the same in
[https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/taxonomy.php?rev=38162&marks=1204-1206#L1204 get_terms()]. (The
extra check for `null` is [https://3v4l.org/jj9aP superfluous].)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37545#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list