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

WordPress Trac noreply at wordpress.org
Tue Jul 12 20:19:14 UTC 2016


#37347: Add a filter to disable maintenance mode for all updates, everywhere.
--------------------------------+-----------------------------
 Reporter:  Zuige               |      Owner:
     Type:  feature request     |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  General             |    Version:  4.5.3
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 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.

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


More information about the wp-trac mailing list