53 | | /** |
54 | | * Filters whether to attempt to perform the multisite DB upgrade routine. |
55 | | * |
56 | | * In single site, the user would be redirected to wp-admin/upgrade.php. |
57 | | * In multisite, the DB upgrade routine is automatically fired, but only |
58 | | * when this filter returns true. |
59 | | * |
60 | | * If the network is 50 sites or less, it will run every time. Otherwise, |
61 | | * it will throttle itself to reduce load. |
62 | | * |
63 | | * @since 3.0.0 |
64 | | * |
65 | | * @param bool $do_mu_upgrade Whether to perform the Multisite upgrade routine. Default true. |
66 | | */ |
67 | | } elseif ( apply_filters( 'do_mu_upgrade', true ) ) { |
| 54 | /** |
| 55 | * Filters whether to attempt to perform the multisite DB upgrade routine. |
| 56 | * |
| 57 | * In single site, the user would be redirected to wp-admin/upgrade.php. |
| 58 | * In multisite, the DB upgrade routine is automatically fired, but only |
| 59 | * when this filter returns true. |
| 60 | * |
| 61 | * If the network is 50 sites or less, it will run every time. Otherwise, |
| 62 | * it will throttle itself to reduce load. |
| 63 | * |
| 64 | * @since 3.0.0 |
| 65 | * |
| 66 | * @param bool $do_mu_upgrade Whether to perform the Multisite upgrade routine. Default true. |
| 67 | */ |
| 68 | $do_mu_upgrade = apply_filters( 'do_mu_upgrade', true ); |
| 69 | if ( $do_mu_upgrade ) { |