Ticket #28600: 28600.diff
File 28600.diff, 890 bytes (added by , 11 years ago) |
---|
-
wp-includes/update.php
266 266 267 267 if ( defined( 'DOING_CRON' ) && DOING_CRON ) { 268 268 $timeout = 30; 269 } else if ( count( $plugins ) > 10 ){270 // One extra second for every 10 plugins269 } else { 270 // Three seconds, plus one extra second for every 10 plugins 271 271 $timeout = 3 + intval( count( $plugins ) / 10 ); 272 } else {273 $timeout = 3;274 272 } 275 273 276 274 $options = array( … … 423 421 424 422 if ( defined( 'DOING_CRON' ) && DOING_CRON ) { 425 423 $timeout = 30; 426 } else if ( count( $themes ) > 10 ){427 // One extra second for every 10 themes424 } else { 425 // Three seconds, plus one extra second for every 10 themes 428 426 $timeout = 3 + intval( count( $themes ) / 10 ); 429 } else {430 $timeout = 3;431 427 } 432 428 433 429 $options = array(