[wp-trac] [WordPress Trac] #50912: Site Health flags define WP_AUTO_UPDATE_CORE value as an error

WordPress Trac noreply at wordpress.org
Tue Aug 11 22:52:47 UTC 2020


#50912: Site Health flags define WP_AUTO_UPDATE_CORE value as an error
--------------------------+---------------------
 Reporter:  sterndata     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.5.1
Component:  Site Health   |     Version:  5.5
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------
Changes (by SergeyBiryukov):

 * keywords:   => needs-patch
 * component:  General => Site Health
 * milestone:  Awaiting Review => 5.5.1


Old description:

> See https://wordpress.org/support/topic/wp_auto_update_core-2
>
> If this is in wp-config.php:
>
> `define(‘WP_AUTO_UPDATE_CORE’, ‘minor’)`
>
> Site health reports
>
> Error The WP_AUTO_UPDATE_CORE constant is defined and enabled.
>
> According to the docs, 'minor' is a legit value for the constant.
>
> Note that changeset 47841  changed it from loose to a strict
> comparison...

New description:

 See https://wordpress.org/support/topic/wp_auto_update_core-2

 If this is in wp-config.php:

 `define('WP_AUTO_UPDATE_CORE', 'minor')`

 Site health reports

 Error The WP_AUTO_UPDATE_CORE constant is defined and enabled.

 According to the docs, 'minor' is a legit value for the constant.

 Note that changeset [47841] changed it from loose to a strict
 comparison...

--

Comment:

 Hi there, thanks for the ticket!

 At a glance, this seemed like a duplicate of #49923. Upon a closer look,
 however, that ticket is about the message displayed when
 `WP_AUTO_UPDATE_CORE` is set to `false`, and this one is about the value
 set to `'minor'`.

 Indeed it looks like before [47841], `'minor'` was recognized as a valid
 value, due to a loose comparison with `true`. With the strict comparison,
 it's no longer recognized.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50912#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list