[wp-trac] [WordPress Trac] #42327: WP_Term_Query returns an empty array instead of 0

WordPress Trac noreply at wordpress.org
Mon Nov 20 22:45:31 UTC 2017


#42327: WP_Term_Query returns an empty array instead of 0
--------------------------------------+---------------------------
 Reporter:  xParham                   |       Owner:  boonebgorges
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.0
Component:  Taxonomy                  |     Version:  2.8.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-unit-tests has-patch  |     Focuses:
--------------------------------------+---------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"42209"]:
 {{{
 #!CommitTicketReference repository="" revision="42209"
 Improve data types returned from empty hierarchical term queries.

 When querying for 'count', ensure that 0 is returned. Otherwise,
 ensure that it's an array.

 Props xParham, birgire.
 Fixes #42327.
 }}}

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


More information about the wp-trac mailing list