Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51827, comment 13


Ignore:
Timestamp:
11/21/2020 01:40:38 PM (4 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51827, comment 13

    initial v1  
    77Hmm, actually no, that's incorrect (double negatives, lol).
    88
    9 The logic is/should be that if `AUTOMATIC_UPDATER_DISABLED` is set and false, it is equivalent to not being set, i.e. the updater is not disabled. Same for the `'automatic_updater_disabled'` filter. So it should be checking only if any of the two is `true` (updater is disabled). Patch coming up.
     9The logic is/should be that if `AUTOMATIC_UPDATER_DISABLED` is set and false, it is equivalent to not being set, i.e. the updater is not disabled. Same for the `'automatic_updater_disabled'` filter. So it should be checking only if any of the two is `true` (updater is disabled). Also the filter overrides the constant.
     10
     11In addition, seems that `wp_is_file_mod_allowed( 'automatic_updater' )` is not checked.
     12
     13Thinking perhaps this should use `WP_Automatic_Updater::is_disabled()` instead of trying to duplicate the logic? It already uses the WP_Automatic_Updater to check for version control.