[wp-trac] [WordPress Trac] #11003: wp_get_object_terms Returns Duplicate Terms

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 7 00:06:27 UTC 2010


#11003: wp_get_object_terms Returns Duplicate Terms
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  ryan                  
     Type:  defect (bug)  |      Status:  new                   
 Priority:  normal        |   Milestone:  Awaiting Triage       
Component:  Taxonomy      |     Version:  2.9                   
 Severity:  normal        |    Keywords:  has-patch dev-feedback
--------------------------+-------------------------------------------------

Comment(by scribu):

 How about this: use DISTINCT to remove duplicate terms, but only when
 $fields != 'all_with_object_id'.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11003#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list