Changeset 53011 for trunk/src/wp-includes/ms-default-filters.php
- Timestamp:
- 03/29/2022 12:41:00 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-default-filters.php
r52207 r53011 85 85 add_action( 'admin_init', 'wp_schedule_update_network_counts' ); 86 86 add_action( 'update_network_counts', 'wp_update_network_counts', 10, 0 ); 87 foreach ( array( ' user_register', 'deleted_user', 'wpmu_new_user', 'make_spam_user', 'make_ham_user' ) as $action ) {87 foreach ( array( 'wpmu_new_user', 'make_spam_user', 'make_ham_user' ) as $action ) { 88 88 add_action( $action, 'wp_maybe_update_network_user_counts', 10, 0 ); 89 89 } 90 91 // These counts are handled by wp_update_network_counts() on Multisite: 92 remove_action( 'admin_init', 'wp_schedule_update_user_counts' ); 93 remove_action( 'wp_update_user_counts', 'wp_schedule_update_user_counts' ); 94 90 95 foreach ( array( 'make_spam_blog', 'make_ham_blog', 'archive_blog', 'unarchive_blog', 'make_delete_blog', 'make_undelete_blog' ) as $action ) { 91 96 add_action( $action, 'wp_maybe_update_network_site_counts', 10, 0 );
Note: See TracChangeset
for help on using the changeset viewer.