[wp-trac] [WordPress Trac] #41796: WP_Term_Query problem using object_ids and number attributes
WordPress Trac
noreply at wordpress.org
Fri Sep 15 19:16:49 UTC 2017
#41796: WP_Term_Query problem using object_ids and number attributes
--------------------------+---------------------------
Reporter: elvishp2006 | Owner: boonebgorges
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.9
Component: Taxonomy | Version: 4.8.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------------
Comment (by elvishp2006):
Does it make any sense to just force the distinct in this situation?
{{{#!php
<?php
if ( ! empty( $limits ) && 'all_with_object_id' !== $args['fields'] &&
$args['object_ids'] ) {
$do_distinct = true;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41796#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list