Make WordPress Core

Ticket #40703: 40703.2.diff

File 40703.2.diff, 1.0 KB (added by flixos90, 7 years ago)
  • src/wp-includes/ms-default-filters.php

     
    5555
    5656// Counts
    5757add_action( 'admin_init', 'wp_schedule_update_network_counts');
    58 add_action( 'update_network_counts', 'wp_update_network_counts');
     58add_action( 'update_network_counts', 'wp_update_network_counts', 10, 0 );
    5959foreach ( 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 );
    6161foreach ( 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 );
    6363unset( $action );
    6464
    6565// Files