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() ) { |
| 405 | 405 | $locales = array_unique( $locales ); |
| 406 | 406 | |
| 407 | 407 | if ( $doing_cron ) { |
| 408 | | $timeout = 30; |
| | 408 | $timeout = MINUTE_IN_SECONDS / 2; |
| 409 | 409 | } else { |
| 410 | 410 | // Three seconds, plus one extra second for every 10 plugins. |
| 411 | 411 | $timeout = 3 + (int) ( count( $plugins ) / 10 ); |
| … |
… |
function wp_update_themes( $extra_stats = array() ) { |
| 686 | 686 | $locales = array_unique( $locales ); |
| 687 | 687 | |
| 688 | 688 | if ( $doing_cron ) { |
| 689 | | $timeout = 30; |
| | 689 | $timeout = MINUTE_IN_SECONDS / 2; |
| 690 | 690 | } else { |
| 691 | 691 | // Three seconds, plus one extra second for every 10 themes. |
| 692 | 692 | $timeout = 3 + (int) ( count( $themes ) / 10 ); |