Make WordPress Core

Ticket #54631: 54631-no-update-message-if-not-configured.diff

File 54631-no-update-message-if-not-configured.diff, 573 bytes (added by sunflower99, 3 years ago)

let the update warning disappear if automatic updates not wanted

  • src/wp-admin/includes/update.php

    diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php
    index 24410cd29c..5d352a1982 100644
    a b function wp_theme_update_row( $theme_key, $theme ) { 
    807807 * @return void|false
    808808 */
    809809function maintenance_nag() {
     810
     811        if (!defined('WP_AUTO_UPDATE_CORE'))
     812                define('WP_AUTO_UPDATE_CORE', true);
     813        if ( false === WP_AUTO_UPDATE_CORE )
     814                return array();
     815
    810816        // Include an unmodified $wp_version.
    811817        require ABSPATH . WPINC . '/version.php';
    812818        global $upgrading;