Don't update last_updated when deleting non-published posts
|Reported by:||ryan||Owned by:||ryan|
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.
Change History (9)
- Summary changed from Don't update last_updated when deleting nn-published posts to Don't update last_updated when deleting non-published posts
Note: See TracTickets for help on using tickets.