Changeset 59926
- Timestamp:
- 03/04/2025 01:48:58 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r59896 r59926 338 338 } 339 339 340 $updates = new stdClass();341 $updates->last_checked = time();342 $updates->response = array();343 $updates->translations = array();344 $updates->no_update = array();345 346 340 $doing_cron = wp_doing_cron(); 347 341 … … 372 366 373 367 foreach ( $plugins as $file => $p ) { 374 $updates->checked[ $file ] = $p['Version'];375 376 368 if ( ! isset( $current->checked[ $file ] ) || (string) $current->checked[ $file ] !== (string) $p['Version'] ) { 377 369 $plugin_changed = true; … … 460 452 if ( is_wp_error( $raw_response ) || 200 !== wp_remote_retrieve_response_code( $raw_response ) ) { 461 453 return; 454 } 455 456 $updates = new stdClass(); 457 $updates->last_checked = time(); 458 $updates->response = array(); 459 $updates->translations = array(); 460 $updates->no_update = array(); 461 foreach ( $plugins as $file => $p ) { 462 $updates->checked[ $file ] = $p['Version']; 462 463 } 463 464
Note: See TracChangeset
for help on using the changeset viewer.