Ticket #27952: 27952.1.diff
File 27952.1.diff, 1.2 KB (added by , 11 years ago) |
---|
-
wp-includes/ms-default-filters.php
34 34 35 35 // Administration 36 36 add_filter( 'term_id_filter', 'global_terms', 10, 2 ); 37 add_action( 'publish_post', 'update_posts_count' );38 37 add_action( 'delete_post', '_update_blog_date_on_post_delete' ); 38 add_action( 'transition_post_status', 'update_posts_count' ); 39 39 add_action( 'transition_post_status', '_update_blog_date_on_post_publish', 10, 3 ); 40 40 41 41 // Counts -
wp-includes/ms-functions.php
1760 1760 * 1761 1761 * WordPress MS stores a blog's post count as an option so as 1762 1762 * to avoid extraneous COUNTs when a blog's details are fetched 1763 * with get_blog_details(). This function is called when posts 1764 * are published to make sure the count stays current.1763 * with get_blog_details(). This function is called when posts' 1764 * status are changed to make sure the count stays current. 1765 1765 * 1766 1766 * @since MU 1767 1767 */