[wp-trac] [WordPress Trac] #35381: Introduce `WP_Term_Query`

WordPress Trac noreply at wordpress.org
Tue May 31 12:53:30 UTC 2016


#35381: Introduce `WP_Term_Query`
-------------------------------------+------------------
 Reporter:  boonebgorges             |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.6
Component:  Taxonomy                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------

Comment (by boonebgorges):

 In [changeset:"37599"]:
 {{{
 #!CommitTicketReference repository="" revision="37599"
 Ensure that `get_terms()` can accept querystring-style arguments.

 Prior to [37572], arguments passed to `get_terms()` were passed
 immediately
 through `wp_parse_args()`, which made it possible to pass arguments as a
 querystring (`hide_empty=0`) rather than an array
 (`array( 'hide_empty' => false )`). [37572] moved default argument parsing
 into `WP_Term_Query`, while assuming that arguments passed to
 `get_terms()`
 would be formatted as an array.

 To provide compatibility, we now parse all args passed to `get_terms()`
 into
 an array before processing.

 See #35381.
 }}}

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


More information about the wp-trac mailing list