blob: cd58eb7b01043739ccfff13248cb8cb12b339b18 (
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
@@ -858,6 +858,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;
|