[wp-trac] [WordPress Trac] #4500: wp_set_object_terms is not increasing taxonomy count correctly.

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 20 21:45:37 GMT 2007


#4500: wp_set_object_terms is not increasing taxonomy count correctly.
----------------------------+-----------------------------------------------
 Reporter:  cavemonkey50    |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:           
Component:  Administration  |     Version:  2.3      
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 It appears that wp_set_object_terms is not always increasing the taxonomy
 count. When using the following code, the count is not increased:

 register_taxonomy('podcast_format', 'custom_field');
 wp_insert_term('Main Feed', 'podcast_format');  // Run only once to create
 term
 wp_set_object_terms($custom_field_id, 'main-feed', 'podcast_format',
 false);

 I am aware of wp_update_term_count, but shouldn't wp_set_object_terms
 increase the count for us?

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


More information about the wp-trac mailing list