wp_update_term_count is not increasing taxonomy count correctly.
|Reported by:||cavemonkey50||Owned by:||anonymous|
It appears that wp_set_object_terms is not always increasing the taxonomy count. When using the following code, the count is not increased:
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?
Change History (4)
- Cc ron@… added
- Keywords has-patch added
- Milestone set to 2.3 (trunk)
- Severity changed from normal to major
- Summary changed from wp_set_object_terms is not increasing taxonomy count correctly. to wp_update_term_count is not increasing taxonomy count correctly.