blob: c5ac5ccf5cc8b64cbc784c63a5ff3fdcf869ed35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Description: Switch off update warning when auto updates set to false (closes #1001623)
Author: Katharina Drexel <katharina.drexel@bfh.ch>
Reviewed-by:
Last-Update: 2023-08-10
--- a/wp-admin/includes/update.php
+++ b/wp-admin/includes/update.php
@@ -857,6 +857,11 @@
* @return void|false
*/
function maintenance_nag() {
+ if (!defined('WP_AUTO_UPDATE_CORE'))
+ define('WP_AUTO_UPDATE_CORE', true);
+ if ( false === WP_AUTO_UPDATE_CORE )
+ return array();
+
// Include an unmodified $wp_version.
require ABSPATH . WPINC . '/version.php';
global $upgrading;
|