Make WordPress Core


Ignore:
Timestamp:
11/12/2020 10:35:54 PM (4 years ago)
Author:
helen
Message:

Upgrade/Install: Better UI for auto-update settings on update screen.

This adds clearer messages about what your current settings mean for updates, uses a more compact link-based action instead of a checkbox to change the setting, and respects constants and filters.

Props audrasjb, karmatosed, helen, azaozz, hedgefield, marybaum.
Fixes #51742.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-core-upgrader.php

    r49292 r49587  
    280280
    281281        // Defaults:
    282         $upgrade_dev   = get_site_option( 'auto_update_core_dev', true );
    283         $upgrade_minor = get_site_option( 'auto_update_core_minor', true );
    284         $upgrade_major = get_site_option( 'auto_update_core_major', false );
     282        $upgrade_dev   = get_site_option( 'auto_update_core_dev', 'enabled' ) === 'enabled';
     283        $upgrade_minor = get_site_option( 'auto_update_core_minor', 'enabled' ) === 'enabled';
     284        $upgrade_major = get_site_option( 'auto_update_core_major', 'unset' ) === 'enabled';
    285285
    286286        // WP_AUTO_UPDATE_CORE = true (all), 'beta', 'rc', 'minor', false.
Note: See TracChangeset for help on using the changeset viewer.