Make WordPress Core


Ignore:
Timestamp:
04/13/2012 05:30:37 PM (12 years ago)
Author:
ryan
Message:

Don't update a blog's last_updated time for all post deletions. Update only when published posts are deleted.

Props SergeyBiryukov
fixes #20433

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-default-filters.php

    r19712 r20461  
    3636add_filter( 'term_id_filter', 'global_terms', 10, 2 );
    3737add_action( 'publish_post', 'update_posts_count' );
    38 add_action( 'delete_post', 'wpmu_update_blogs_date' );
     38add_action( 'delete_post', '_update_blog_date_on_post_delete' );
    3939add_action( 'transition_post_status', '_update_blog_date_on_post_publish', 10, 3 );
    4040add_action( 'admin_init', 'wp_schedule_update_network_counts');
Note: See TracChangeset for help on using the changeset viewer.