[wp-trac] [WordPress Trac] #37347: Add a filter to disable maintenance mode for all updates, everywhere.

WordPress Trac noreply at wordpress.org
Thu Jul 7 16:54:30 UTC 2022


#37347: Add a filter to disable maintenance mode for all updates, everywhere.
-----------------------------+---------------------------------
 Reporter:  Zuige            |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  4.5.3
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |     Focuses:  ui, administration
-----------------------------+---------------------------------
Changes (by desrosj):

 * keywords:  has-patch => has-patch close
 * milestone:   => Awaiting Review


Comment:

 My apologies that it took so long to receive a reply, @Zuige!

 Marking a few other tickets related to maintenance mode: #36960, #36960

 I'm generally pro-filter/action hook, but I'm not sure this is something
 that Core should allow.

 Maintenance mode is only enabled when an active plugin/theme or Core
 itself is updated. Unless there is an issue encountered during the
 upgrade, it's only displayed very briefly. Allowing plugins and themes to
 modify this behavior or replace it with something more complex could
 potentially compromise the confidence site owners have in the upgrade
 process, which is especially important now that a UI exists for site
 owners to opt-in to plugin and theme auto-updates.

 It looks like the `enable_maintenance_mode`
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/load.php?rev=53679#L316 filter] was added within #34936 to serve
 a similar purpose without preventing the `.maintenance` file from being
 created, but it appears to have been purposefully introduced in a way that
 plugins could not use it (`apply_filters()` is not yet available).

 I'm going to mark this with a `close` suggestion. But if you're able to
 provide a bit more detail for a use case to replace this it may help
 justify.

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


More information about the wp-trac mailing list