Future posts cause term count to increase
|Reported by:||Otto42||Owned by:|
Making a future post causes the term counts to increase for both tags and categories, which makes the displayed counts for either of these incorrect, when using wp_list_categories or similar functions with the "show_count" option.
Correct behavior would be for counts to ignore future posts, since they have not been published yet. This would require the wp_update_term_count function to take post_status into account and would require the wp_publish_post to call wp_update_term_count as well (possibly through a post transition action or some such thing).