Changeset 54891 for trunk/src/wp-includes/update.php
- Timestamp:
- 11/29/2022 03:49:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r54287 r54891 45 45 46 46 if ( ! is_object( $current ) ) { 47 $current = new stdClass ;47 $current = new stdClass(); 48 48 $current->updates = array(); 49 49 $current->version_checked = $wp_version; … … 328 328 329 329 if ( ! is_object( $current ) ) { 330 $current = new stdClass ;331 } 332 333 $updates = new stdClass ;330 $current = new stdClass(); 331 } 332 333 $updates = new stdClass(); 334 334 $updates->last_checked = time(); 335 335 $updates->response = array(); … … 596 596 597 597 if ( ! is_object( $last_update ) ) { 598 $last_update = new stdClass ;598 $last_update = new stdClass(); 599 599 } 600 600 … … 735 735 } 736 736 737 $new_update = new stdClass ;737 $new_update = new stdClass(); 738 738 $new_update->last_checked = time(); 739 739 $new_update->checked = $checked; … … 847 847 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 848 848 849 $upgrader = new WP_Automatic_Updater ;849 $upgrader = new WP_Automatic_Updater(); 850 850 $upgrader->run(); 851 851 }
Note: See TracChangeset
for help on using the changeset viewer.