[wp-trac] [WordPress Trac] #51698: Consider to provide a hook to allow developers to hide the auto-updates UI for Core major versions

WordPress Trac noreply at wordpress.org
Tue Nov 3 07:16:23 UTC 2020


#51698: Consider to provide a hook to allow developers to hide the auto-updates UI
for Core major versions
-----------------------------+-----------------------
 Reporter:  audrasjb         |       Owner:  audrasjb
     Type:  defect (bug)     |      Status:  assigned
 Priority:  normal           |   Milestone:  5.6
Component:  Upgrade/Install  |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |     Focuses:
-----------------------------+-----------------------

Comment (by knutsp):

 If auto updates are controlled by constants or filters, what should be the
 purpose of the UI?

 In case `const WP_AUTO_UPDATE_CORE = true;` (or whatever) it appears like
 changing the setting is possible, but changing the setting have no effect.

 In case `const AUTOMATIC_UPDATER_DISABLED = true;` it seems to have no
 effect on the UI.

 Disabling the checkbox, accompanied by a textual explanation, will
 properly visualize the state to the admin. The current WP Beta Tester
 plugin has similar.

 I don't see the need for this UI removal, and it could be
 misused/misunderstood to just remove it without setting proper constants
 or filters to actually control core auto updates.

 In case `const DISALLOW_FILE_MODS = true;` the entire admin page is gone.
 This is the best way to handle also this, IMO.

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


More information about the wp-trac mailing list