[wp-trac] [WordPress Trac] #17548: wp_trash_post() does not call update_post_count()
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 30 20:02:42 UTC 2011
#17548: wp_trash_post() does not call update_post_count()
--------------------------------------------------+-----------------------
Reporter: joehoyle | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.3
Component: Taxonomy | Version: 3.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs-testing |
--------------------------------------------------+-----------------------
Comment (by joehoyle):
> Maybe == publish `||` == inherit?
If an attachment's parent is draft, should it up the count though? I was
presuming it should not...
> Note that this means _update_post_term_count() has always been broken
for attachments.
I don't think so - as attachments used the old default (which just counts
posts in a tt_id regardless of status), then attachments would have
counted towards the post_count (of course, thats providing `post_tag` is
added to the attachment post type). (unless you are referring to that as
broken)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17548#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list