Multisite: Fix filter hooks for the updating network count functions.

[40591] and [40593] introduced a `$network_id` parameter for `wp_maybe_update_network_site_counts()` and `wp_maybe_update_network_user_counts()`, as well as [40486] previously added it to `wp_update_network_counts()`. This changeset ensures the filter hooks in `ms-default-filters.php` do not pass any parameter to them that might conflict with their actual `$network_id` parameter, which caused unit test failures before.

Fixes #40703.


git-svn-id: https://develop.svn.wordpress.org/trunk@40596 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Felix Arntz 2017-05-09 17:14:08 +00:00
parent 0dd638a2e7
commit c449b34f6c
1 changed files with 3 additions and 3 deletions

View File

@ -55,11 +55,11 @@ add_action( 'transition_post_status', '_update_posts_count_on_transition_post_st
// Counts
add_action( 'admin_init', 'wp_schedule_update_network_counts');
add_action( 'update_network_counts', 'wp_update_network_counts');
add_action( 'update_network_counts', 'wp_update_network_counts', 10, 0 );
foreach ( array( 'user_register', 'deleted_user', 'wpmu_new_user', 'make_spam_user', 'make_ham_user' ) as $action )
add_action( $action, 'wp_maybe_update_network_user_counts' );
add_action( $action, 'wp_maybe_update_network_user_counts', 10, 0 );
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' );
add_action( $action, 'wp_maybe_update_network_site_counts', 10, 0 );
unset( $action );
// Files