diff --git a/src/wp-includes/update.php b/src/wp-includes/update.php
index 5136912037..faaa82db91 100644
a
|
b
|
function wp_update_plugins( $extra_stats = array() ) { |
330 | 330 | $current = new stdClass(); |
331 | 331 | } |
332 | 332 | |
333 | | $updates = new stdClass(); |
334 | | $updates->last_checked = time(); |
335 | | $updates->response = array(); |
336 | | $updates->translations = array(); |
337 | | $updates->no_update = array(); |
338 | | |
339 | 333 | $doing_cron = wp_doing_cron(); |
340 | 334 | |
341 | 335 | // Check for update on a different schedule, depending on the page. |
… |
… |
function wp_update_plugins( $extra_stats = array() ) { |
364 | 358 | $plugin_changed = false; |
365 | 359 | |
366 | 360 | foreach ( $plugins as $file => $p ) { |
367 | | $updates->checked[ $file ] = $p['Version']; |
368 | | |
369 | 361 | if ( ! isset( $current->checked[ $file ] ) || (string) $current->checked[ $file ] !== (string) $p['Version'] ) { |
370 | 362 | $plugin_changed = true; |
371 | 363 | } |
… |
… |
function wp_update_plugins( $extra_stats = array() ) { |
453 | 445 | return; |
454 | 446 | } |
455 | 447 | |
| 448 | $updates = new stdClass(); |
| 449 | $updates->last_checked = time(); |
| 450 | $updates->response = array(); |
| 451 | $updates->translations = array(); |
| 452 | $updates->no_update = array(); |
| 453 | foreach ( $plugins as $file => $p ) { |
| 454 | $updates->checked[ $file ] = $p['Version']; |
| 455 | } |
| 456 | |
456 | 457 | $response = json_decode( wp_remote_retrieve_body( $raw_response ), true ); |
457 | 458 | |
458 | 459 | if ( $response && is_array( $response ) ) { |