[wp-trac] [WordPress Trac] #17548: wp_trash_post() does not call update_post_count()
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 3 14:21:11 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 ryan):
The problem is that the object types are array( 'attachment:image',
'attachment:video', 'attachment:audio' ), This throws off the in_array()
check and the post_type IN part of the query. I guess we need to trim :*
off the end of the types.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17548#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list