Filters whether to attempt to perform the multisite DB upgrade routine.
Description
In single site, the user would be redirected to wp-admin/upgrade.php.In multisite, the DB upgrade routine is automatically fired, but only when this filter returns true. If the network is 50 sites or less, it will run every time. Otherwise, it will throttle itself to reduce load.
Parameters
$do_mu_upgradebool
Whether to perform the Multisite upgrade routine. Default true.
67* it will throttle itself to reduce load.68*69* @since MU(3.0.0)70*71* @param bool$do_mu_upgrade Whether to perform the Multisite upgrade routine.Defaulttrue.72*/73if(apply_filters('do_mu_upgrade',true)){74$c=get_blog_count();7576/*77 * If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load:78 * attempt to do no more than threshold value, with some +/- allowed.79 */
History
Introduced in MU (3.0.0). Unchanged from 6.7.7 through 7.1.0.