[wp-trac] [WordPress Trac] #36992: In get_terms(), getting a fatal error iterating on $terms inside get_terms filter.

WordPress Trac noreply at wordpress.org
Sat Jun 4 12:19:18 UTC 2016


#36992: In get_terms(), getting a fatal error iterating on $terms inside get_terms
filter.
---------------------------+---------------------------
 Reporter:  JustinSainton  |       Owner:  boonebgorges
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.6
Component:  Taxonomy       |     Version:  trunk
 Severity:  normal         |  Resolution:  fixed
 Keywords:                 |     Focuses:
---------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37634"]:
 {{{
 #!CommitTicketReference repository="" revision="37634"
 Taxonomy: No, really, don't pass results of 'count' query through
 'get_terms' filter.

 [37623] used the wrong parameter name (count=true instead of
 fields=count).

 For greater flexibility and forward compatibility with other potential
 changes
 to the return value of `get_terms()`, we now do a looser check: any non-
 array
 value is excluded from the filter.

 Fixes #36992.
 }}}

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


More information about the wp-trac mailing list