[wp-trac] [WordPress Trac] #4913: Future posts cause term count to
increase
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 5 19:17:41 GMT 2007
#4913: Future posts cause term count to increase
---------------------+------------------------------------------------------
Reporter: Otto42 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.4 (next)
Component: General | Version: 2.3
Severity: major | Keywords:
---------------------+------------------------------------------------------
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).
--
Ticket URL: <http://trac.wordpress.org/ticket/4913>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list