Docs: Move the do_mu_upgrade DocBlock out of the preceding if statement.

Props ChriCo, dkarfa.
Fixes #47710.
Built from https://develop.svn.wordpress.org/trunk@45643


git-svn-id: http://core.svn.wordpress.org/trunk@45454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-07-16 13:15:58 +00:00
parent 62dc808103
commit 62216de5d4
2 changed files with 17 additions and 16 deletions

View File

@ -49,22 +49,23 @@ if ( get_option( 'db_upgraded' ) ) {
if ( ! is_multisite() ) { if ( ! is_multisite() ) {
wp_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) ); wp_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
exit; exit;
}
/** /**
* Filters whether to attempt to perform the multisite DB upgrade routine. * Filters whether to attempt to perform the multisite DB upgrade routine.
* *
* In single site, the user would be redirected to wp-admin/upgrade.php. * In single site, the user would be redirected to wp-admin/upgrade.php.
* In multisite, the DB upgrade routine is automatically fired, but only * In multisite, the DB upgrade routine is automatically fired, but only
* when this filter returns true. * when this filter returns true.
* *
* If the network is 50 sites or less, it will run every time. Otherwise, * If the network is 50 sites or less, it will run every time. Otherwise,
* it will throttle itself to reduce load. * it will throttle itself to reduce load.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
* @param bool $do_mu_upgrade Whether to perform the Multisite upgrade routine. Default true. * @param bool $do_mu_upgrade Whether to perform the Multisite upgrade routine. Default true.
*/ */
} elseif ( apply_filters( 'do_mu_upgrade', true ) ) { if ( apply_filters( 'do_mu_upgrade', true ) ) {
$c = get_blog_count(); $c = get_blog_count();
/* /*

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45642'; $wp_version = '5.3-alpha-45643';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.