Make WordPress Core

Ticket #56293: 56293.patch

File 56293.patch, 812 bytes (added by arrasel403, 2 years ago)

Patch file added for this ticket

  • src/wp-includes/update.php

    diff --git a/src/wp-includes/update.php b/src/wp-includes/update.php
    index bc295359bf..721d1f1231 100644
    a b function wp_update_plugins( $extra_stats = array() ) { 
    405405        $locales = array_unique( $locales );
    406406
    407407        if ( $doing_cron ) {
    408                 $timeout = 30;
     408                $timeout = MINUTE_IN_SECONDS / 2;
    409409        } else {
    410410                // Three seconds, plus one extra second for every 10 plugins.
    411411                $timeout = 3 + (int) ( count( $plugins ) / 10 );
    function wp_update_themes( $extra_stats = array() ) { 
    686686        $locales = array_unique( $locales );
    687687
    688688        if ( $doing_cron ) {
    689                 $timeout = 30;
     689                $timeout = MINUTE_IN_SECONDS / 2;
    690690        } else {
    691691                // Three seconds, plus one extra second for every 10 themes.
    692692                $timeout = 3 + (int) ( count( $themes ) / 10 );