[wp-trac] [WordPress Trac] #42327: WP_Term_Query returns an empty array instead of 0
WordPress Trac
noreply at wordpress.org
Tue Oct 24 22:01:20 UTC 2017
#42327: WP_Term_Query returns an empty array instead of 0
--------------------------+-----------------------------
Reporter: xParham | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When running a term query using the `parent` or `child_of` query
parameters, and `count` as the term `fields` to query for, if the parent
has no descendants the query doesn't respect the `fields` parameter and
returns an empty array instead of 0.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42327>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list