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

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 1 08:25:48 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):

 By default, array_unique() compares the contents of the array as a string,
 fouls it up as you found out..

 Did setting the compare to REGULAR help at all? ie. $terms =
 array_unique($terms, SORT_REGULAR);

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


More information about the wp-trac mailing list