diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php
index 24410cd29c..806ac09df2 100644
a
|
b
|
function get_preferred_from_update_core() { |
34 | 34 | * @return array|false Array of the update objects on success, false on failure. |
35 | 35 | */ |
36 | 36 | function get_core_updates( $options = array() ) { |
| 37 | if (!defined('WP_AUTO_UPDATE_CORE')) |
| 38 | define('WP_AUTO_UPDATE_CORE', true); |
| 39 | |
| 40 | if ( false === WP_AUTO_UPDATE_CORE ) |
| 41 | return array(); |
| 42 | |
37 | 43 | $options = array_merge( |
38 | 44 | array( |
39 | 45 | 'available' => true, |