@@ 278-283 (lines=6) @@ | ||
275 | $locales = apply_filters( 'plugins_update_check_locales', $locales ); |
|
276 | $locales = array_unique( $locales ); |
|
277 | ||
278 | if ( defined( 'DOING_CRON' ) && DOING_CRON ) { |
|
279 | $timeout = 30; |
|
280 | } else { |
|
281 | // Three seconds, plus one extra second for every 10 plugins |
|
282 | $timeout = 3 + (int) ( count( $plugins ) / 10 ); |
|
283 | } |
|
284 | ||
285 | $options = array( |
|
286 | 'timeout' => $timeout, |
|
@@ 452-457 (lines=6) @@ | ||
449 | $locales = apply_filters( 'themes_update_check_locales', $locales ); |
|
450 | $locales = array_unique( $locales ); |
|
451 | ||
452 | if ( defined( 'DOING_CRON' ) && DOING_CRON ) { |
|
453 | $timeout = 30; |
|
454 | } else { |
|
455 | // Three seconds, plus one extra second for every 10 themes |
|
456 | $timeout = 3 + (int) ( count( $themes ) / 10 ); |
|
457 | } |
|
458 | ||
459 | $options = array( |
|
460 | 'timeout' => $timeout, |