wp_update_term_count is not increasing taxonomy count correctly.
|Reported by:||cavemonkey50||Owned by:|
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)
comment:1 cavemonkey50 — 7 years ago
- Cc ron@… added
- Keywords has-patch added
- Milestone set to 2.3 (trunk)
- Severity changed from normal to major
comment:2 cavemonkey50 — 7 years ago
- Summary changed from wp_set_object_terms is not increasing taxonomy count correctly. to wp_update_term_count is not increasing taxonomy count correctly.