From b26ef93355eecd1f2f2a664aaafe61feb1f9a5bd Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sun, 5 Aug 2012 18:32:39 +0000 Subject: [PATCH] About ten percent git-svn-id: https://develop.svn.wordpress.org/trunk@21422 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/admin.php b/wp-admin/admin.php index 6db6e32a45..16d220ef13 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -51,6 +51,7 @@ if ( get_option('db_upgraded') ) { * @since 2.8.4b */ $c = get_blog_count(); + // If 50 or fewer sites, run every time. Else, run "about ten percent" of the time. Shh, don't check that math. if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int)( $c / 50 ) ) == 1 ) ) { require_once( ABSPATH . WPINC . '/http.php' ); $response = wp_remote_get( admin_url( 'upgrade.php?step=1' ), array( 'timeout' => 120, 'httpversion' => '1.1' ) );