Make WordPress Core

Ticket #27952: 27952.patch

File 27952.patch, 650 bytes (added by 5um17, 10 years ago)
  • wp-includes/ms-default-filters.php

     
    3535// Administration
    3636add_filter( 'term_id_filter', 'global_terms', 10, 2 );
    3737add_action( 'publish_post', 'update_posts_count' );
     38add_action( 'delete_post', 'update_posts_count' );
    3839add_action( 'delete_post', '_update_blog_date_on_post_delete' );
     40add_action( 'transition_post_status', 'update_posts_count' );
    3941add_action( 'transition_post_status', '_update_blog_date_on_post_publish', 10, 3 );
    4042
    4143// Counts