Ticket #40703: 40703.diff
File 40703.diff, 943 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/ms-default-filters.php
57 57 add_action( 'admin_init', 'wp_schedule_update_network_counts'); 58 58 add_action( 'update_network_counts', 'wp_update_network_counts'); 59 59 foreach ( array( 'user_register', 'deleted_user', 'wpmu_new_user', 'make_spam_user', 'make_ham_user' ) as $action ) 60 add_action( $action, 'wp_maybe_update_network_user_counts' );60 add_action( $action, 'wp_maybe_update_network_user_counts', 10, 0 ); 61 61 foreach ( array( 'make_spam_blog', 'make_ham_blog', 'archive_blog', 'unarchive_blog', 'make_delete_blog', 'make_undelete_blog' ) as $action ) 62 add_action( $action, 'wp_maybe_update_network_site_counts' );62 add_action( $action, 'wp_maybe_update_network_site_counts', 10, 0 ); 63 63 unset( $action ); 64 64 65 65 // Files