Changeset 60923
- Timestamp:
- 10/11/2025 11:39:47 PM (6 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/admin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin.php
r59634 r60923 73 73 */ 74 74 if ( apply_filters( 'do_mu_upgrade', true ) ) { 75 $ c= get_blog_count();75 $blog_count = get_blog_count(); 76 76 77 77 /* … … 79 79 * attempt to do no more than threshold value, with some +/- allowed. 80 80 */ 81 if ( $ c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c/ 50 ) ) === 1 ) ) {81 if ( $blog_count <= 50 || ( $blog_count > 50 && mt_rand( 0, (int) ( $blog_count / 50 ) ) === 1 ) ) { 82 82 require_once ABSPATH . WPINC . '/http.php'; 83 83 84 $response = wp_remote_get( 84 85 admin_url( 'upgrade.php?step=1' ), … … 88 89 ) 89 90 ); 91 90 92 /** This action is documented in wp-admin/network/upgrade.php */ 91 93 do_action( 'after_mu_upgrade', $response ); 94 92 95 unset( $response ); 93 96 } 94 unset( $c ); 97 98 unset( $blog_count ); 95 99 } 96 100 }
Note: See TracChangeset
for help on using the changeset viewer.