[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:51:27 UTC 2020


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

 * status:  new => closed
 * component:  General => Site Health
 * milestone:  Awaiting Review =>
 * keywords:   => needs-patch
 * resolution:   => duplicate


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