diff --git a/src/wp-includes/update.php b/src/wp-includes/update.php
index 79e3b3ea33..c4521427bd 100644
|
a
|
b
|
function wp_update_plugins( $extra_stats = array() ) { |
| 296 | 296 | $current = new stdClass; |
| 297 | 297 | } |
| 298 | 298 | |
| 299 | | $updates = new stdClass; |
| 300 | | $updates->last_checked = time(); |
| 301 | | $updates->response = array(); |
| 302 | | $updates->translations = array(); |
| 303 | | $updates->no_update = array(); |
| 304 | | |
| 305 | 299 | $doing_cron = wp_doing_cron(); |
| 306 | 300 | |
| 307 | 301 | // Check for update on a different schedule, depending on the page. |
| … |
… |
function wp_update_plugins( $extra_stats = array() ) { |
| 330 | 324 | $plugin_changed = false; |
| 331 | 325 | |
| 332 | 326 | foreach ( $plugins as $file => $p ) { |
| 333 | | $updates->checked[ $file ] = $p['Version']; |
| 334 | | |
| 335 | 327 | if ( ! isset( $current->checked[ $file ] ) || (string) $current->checked[ $file ] !== (string) $p['Version'] ) { |
| 336 | 328 | $plugin_changed = true; |
| 337 | 329 | } |
| … |
… |
function wp_update_plugins( $extra_stats = array() ) { |
| 419 | 411 | return; |
| 420 | 412 | } |
| 421 | 413 | |
| | 414 | $updates = new stdClass; |
| | 415 | $updates->last_checked = time(); |
| | 416 | $updates->response = array(); |
| | 417 | $updates->translations = array(); |
| | 418 | $updates->no_update = array(); |
| | 419 | foreach ( $plugins as $file => $p ) { |
| | 420 | $updates->checked[ $file ] = $p['Version']; |
| | 421 | } |
| | 422 | |
| 422 | 423 | $response = json_decode( wp_remote_retrieve_body( $raw_response ), true ); |
| 423 | 424 | |
| 424 | 425 | if ( $response && is_array( $response ) ) { |