[wp-trac] [WordPress Trac] #20433: Don't update last_updated when deleting nn-published posts

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 12 23:28:06 UTC 2012


#20433: Don't update last_updated when deleting nn-published posts
--------------------------+-----------------
 Reporter:  ryan          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.4
Component:  Multisite     |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------
 {{{
 add_action( 'delete_post', 'wpmu_update_blogs_date' );
 }}}

 Instead of that, let's hook in an action that checks the post status and
 updates only when published posts are deleted. This will avoid lots of
 updates to wp_blogs when cleaning out old auto-draft posts.

 Inspired by #19663.  [20440] caused massive numbers of updates to
 wp_blogs.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20433>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list