WordPress.org

Make WordPress Core

Ticket #47710: 47710.patch

File 47710.patch, 1.7 KB (added by ChriCo, 15 months ago)
  • wp-admin/admin.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    4949        if ( ! is_multisite() ) {
    5050                wp_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
    5151                exit;
     52        }
    5253
    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 ) {
    6870                $c = get_blog_count();
    6971
    7072                /*