blob: 0b34d77038175476f1ab228e34f2acddaa81f6fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Description: Disabled the "please update" warning
thanks to Hans Spaans and Rolf Leggewie (Closes: #506685)
Author: Giuseppe Iuculano <giuseppe@iuculano.it>, Katharina Drexel <katharina.drexel@bfh.ch>
Reviewed-by: Craig Small <csmall@debian.org>
Last-Update: 2023-08-10
--- a/wp-admin/includes/update.php
+++ b/wp-admin/includes/update.php
@@ -37,6 +37,10 @@
* @return array|false Array of the update objects on success, false on failure.
*/
function get_core_updates( $options = array() ) {
+ if (!defined('WP_AUTO_UPDATE_CORE'))
+ define('WP_AUTO_UPDATE_CORE', true);
+ if ( false === WP_AUTO_UPDATE_CORE )
+ return array();
$options = array_merge(
array(
'available' => true,
|