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

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 22 11:14:21 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
--------------------------+-------------------------------------------------
 wp_get_object_terms() accepts multiple objects in its first parameter.  If
 the multiple objects have terms in common, then wp_get_object_terms()
 returns those terms more than once in the returned array of term data.

 Patch makes the array of terms unique.

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


More information about the wp-trac mailing list