Make WordPress Core


Ignore:
Timestamp:
10/24/2020 12:24:43 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Upgrade/Install: Account for new WP_AUTO_UPDATE_CORE values in auto-updates settings form.

This updates core_auto_updates_settings() to account for the new beta and rc values for the WP_AUTO_UPDATE_CORE constant.

Additionally, recognize these new values as acceptable in Site Health tests.

Follow-up to [48804], [49245], [49254].

Fixes #51319. See #50907.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r49154 r49292  
    2828    public function run_tests() {
    2929        $tests = array(
    30             $this->test_constants( 'WP_AUTO_UPDATE_CORE', array( true, 'minor' ) ),
     30            $this->test_constants( 'WP_AUTO_UPDATE_CORE', array( true, 'beta', 'rc', 'minor' ) ),
    3131            $this->test_wp_version_check_attached(),
    3232            $this->test_filters_automatic_updater_disabled(),
Note: See TracChangeset for help on using the changeset viewer.