diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php
index a3a35c8d29..24020accdc 100644
|
a
|
b
|
function get_core_updates( $options = array() ) { |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | } |
| | 71 | $compatible_updates = array_filter( |
| | 72 | $updates, |
| | 73 | function( $update ) { |
| | 74 | $php_version = \phpversion(); |
| | 75 | return $php_version >= $update->php_version; |
| | 76 | } |
| | 77 | ); |
| | 78 | $best_update = empty( $compatible_updates ) ? [] : array_shift( $compatible_updates ); |
| | 79 | if ( isset( $best_update->response ) && ! empty( $result ) ) { |
| | 80 | $best_update->response = 'upgrade'; |
| | 81 | $result[] = $best_update; |
| | 82 | } |
| | 83 | |
| 71 | 84 | return $result; |
| 72 | 85 | } |
| 73 | 86 | |