[wp-trac] [WordPress Trac] #37568: `get_terms()` falsely assumes that legacy arguments are used

WordPress Trac noreply at wordpress.org
Thu Aug 4 09:35:24 UTC 2016


#37568: `get_terms()` falsely assumes that legacy arguments are used
--------------------------+------------------------------
 Reporter:  flixos90      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by flixos90):

 * keywords:  needs-patch => has-patch


Comment:

 [attachment:37568.diff] fixes that problem by introducing a new static
 method to `WP_Meta_Query` which returns the default values for it. These
 default values are then included in the query var defaults in
 `WP_Term_Query`. They could alternatively be placed directly in
 `WP_Term_Query`, but I think this approach makes more sense since several
 classes use `WP_Meta_Query` and could use its new method.

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


More information about the wp-trac mailing list