[wp-trac] [WordPress Trac] #11003: wp_get_object_terms Returns Duplicate Terms
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 22 11:31:06 UTC 2009
#11003: wp_get_object_terms Returns Duplicate Terms
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Taxonomy | Version: 2.9
Severity: normal | Keywords: has-patch tested commit
--------------------------+-------------------------------------------------
Comment(by dd32):
The attached patch has a slight issue, {{fields = all_with_object_id}}}
will no longer return a the full set of object Id/term id/taxonomy id
suite, only the first termid found for each..
Simply adding DISTINCT to the queries seems a better option to me.. More
foolproof to let the SQL layer filter out the other rows. see patch.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11003#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list