diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php
index 6995983..fb5d977 100644
a
|
b
|
class WP_Upgrader { |
808 | 808 | public function maintenance_mode( $enable = false ) { |
809 | 809 | global $wp_filesystem; |
810 | 810 | $file = $wp_filesystem->abspath() . '.maintenance'; |
| 811 | /** |
| 812 | * Filters whether to enable maintenance mode |
| 813 | * |
| 814 | * @since 4.6 |
| 815 | * @access public |
| 816 | * |
| 817 | * @param bool $enable Whether to apply maintenance mode |
| 818 | * @param WP_Upgrader $this The WP_Upgrader instance. |
| 819 | */ |
| 820 | $enable = apply_filters( 'maintenance_mode', $enable, $this ); |
811 | 821 | if ( $enable ) { |
812 | 822 | $this->skin->feedback('maintenance_start'); |
813 | 823 | // Create maintenance file to signal that we are upgrading |