[wp-trac] [WordPress Trac] #39932: `get_terms()` with `name` and without `taxonomy` generates warning

WordPress Trac noreply at wordpress.org
Fri Mar 3 03:01:41 UTC 2017


#39932: `get_terms()` with `name` and without `taxonomy` generates warning
--------------------------+---------------------------
 Reporter:  dlh           |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.8
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40147"]:
 {{{
 #!CommitTicketReference repository="" revision="40147"
 Taxonomy: When querying terms, ensure `$taxonomies` is an array.

 This avoids PHP notices that otherwise arise when no `taxonomy`
 parameter is passed to `get_terms()` or `WP_Term_Query`.

 Props dlh.
 Fixes #39932.
 }}}

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


More information about the wp-trac mailing list