[wp-trac] [WordPress Trac] #14392: Incorrect Post Counts on Custom Taxonomies When Post is Deleted
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 22 19:04:45 UTC 2010
#14392: Incorrect Post Counts on Custom Taxonomies When Post is Deleted
------------------------------+---------------------------------------------
Reporter: chrisvrichardson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.0
Severity: normal | Keywords: taxonomy,delete,trash
------------------------------+---------------------------------------------
Post counts for terms in custom taxnomies do not seem to decrement when
the post is first deleted (moved to the trash), only after the trash is
emptied.
The issue seems to be present for both hierarchical and flat taxonomies.
To reproduce:
1. Create a custom taxonomy.
2. Create a term in the custom taxonomy
3. Create a category
4. Create a post and assign the custom taxonomy term to it. Also assign
the category to it.
5. Check the post counts on the 'categories' screen and the screen for
your custom taxonomy. Both will show a count of 1 post.
6. Delete the post
7. The category post count on the 'categories' screen will decrement to
'0'. Your custom taxonomy term, however, will still show '1'. Clicking
on it will take you to the posts screen with a message that the post
doesn't exist.
8. Empty the trash. Your custom taxonomy term will now show a correct
count of '0'.
This issue may be related to tickets 14084 and 14073, although neither of
those seemed to address it directly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14392>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list