Make WordPress Core


Ignore:
Timestamp:
01/29/2015 11:52:55 AM (9 years ago)
Author:
DrewAPicture
Message:

Avoid confusion by clarifying an inline comment on logic for performing multisite upgrades.

Props dmchale for the initial patch.
Fixes #30837.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin.php

    r31170 r31297  
    6464    } elseif ( apply_filters( 'do_mu_upgrade', true ) ) {
    6565        $c = get_blog_count();
    66         // If 50 or fewer sites, run every time. Else, run "about ten percent" of the time. Shh, don't check that math.
     66
     67        /*
     68         * If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load:
     69         * attempt to do no more than threshold value, with some +/- allowed.
     70         */
    6771        if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int)( $c / 50 ) ) == 1 ) ) {
    6872            require_once( ABSPATH . WPINC . '/http.php' );
Note: See TracChangeset for help on using the changeset viewer.