WordPress.org

Make WordPress Core

Opened 17 months ago

Last modified 17 months ago

#37347 new feature request

Add a filter to disable maintenance mode for all updates, everywhere.

Reported by: Zuige Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.5.3
Component: Upgrade/Install Keywords: has-patch
Focuses: ui, administration Cc:

Description

Currently there is no way for plugins to disable the wordpress maintenance mode from happening during updates done via the standard WP_Upgrader class.

I would like something like

add_filter( 'maintenance_mode', '__return_false' );

to just work. Which would completely stop WP_Upgrader::maintenance_mode from creating the .maintenance file.

The use case is for plugins that hook into the upgrade process, like https://wordpress.org/plugins/wp-safe-updates/ that want to either disable the maintenance phase, or replace it with something different.

Attachments (1)

37347.diff (1.0 KB) - added by Zuige 17 months ago.

Download all attachments as: .zip

Change History (5)

This ticket was mentioned in Slack in #feature-shinyupdates by anttiviljami. View the logs.


17 months ago

@Zuige
17 months ago

#2 @Zuige
17 months ago

  • Keywords has-patch added

#3 @Zuige
17 months ago

  • Component changed from General to Upgrade/Install

This ticket was mentioned in Slack in #core by anttiviljami. View the logs.


17 months ago

Note: See TracTickets for help on using tickets.