add_action( 'transition_post_status', '_update_blog_date_on_post_publish', 10, 3
);
add_action( 'transition_post_status', '_update_posts_count_on_transition_post_status', 10, 3
);
// Counts.
add_action( 'admin_init', 'wp_schedule_update_network_counts'
);
add_action( 'update_network_counts', 'wp_update_network_counts', 10, 0
);
foreach ( array
( 'wpmu_new_user', 'make_spam_user', 'make_ham_user'
) as $action ) { add_action( $action, 'wp_maybe_update_network_user_counts', 10, 0
);
}// These counts are handled by wp_update_network_counts() on Multisite:
remove_action( 'admin_init', 'wp_schedule_update_user_counts'
);
remove_action( 'wp_update_user_counts', 'wp_schedule_update_user_counts'
);
foreach ( array
( 'make_spam_blog', 'make_ham_blog', 'archive_blog', 'unarchive_blog', 'make_delete_blog', 'make_undelete_blog'
) as $action ) { add_action( $action, 'wp_maybe_update_network_site_counts', 10, 0
);
}unset( $action );
// Files.
add_filter( 'wp_upload_bits', 'upload_is_file_too_big'
);
add_filter( 'import_upload_size_limit', 'fix_import_form_size'
);
add_filter( 'upload_mimes', 'check_upload_mimes'
);