Make WordPress Core

Ticket #28600: 28600.diff

File 28600.diff, 890 bytes (added by leewillis77, 10 years ago)

Patch

  • wp-includes/update.php

     
    266266
    267267        if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
    268268                $timeout = 30;
    269         } elseif ( count( $plugins ) > 10 ) {
    270                 // One extra second for every 10 plugins
     269        } else {
     270                // Three seconds, plus one extra second for every 10 plugins
    271271                $timeout = 3 + intval( count( $plugins ) / 10 );
    272         } else {
    273                 $timeout = 3;
    274272        }
    275273
    276274        $options = array(
     
    423421
    424422        if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
    425423                $timeout = 30;
    426         } elseif ( count( $themes ) > 10 ) {
    427                 // One extra second for every 10 themes
     424        } else {
     425                // Three seconds, plus one extra second for every 10 themes
    428426                $timeout = 3 + intval( count( $themes ) / 10 );
    429         } else {
    430                 $timeout = 3;
    431427        }
    432428
    433429        $options = array(