diff --git wp-admin/includes/class-wp-upgrader.php wp-admin/includes/class-wp-upgrader.php
index d3abd8e..4327c07 100644
|
|
class WP_Upgrader { |
738 | 738 | */ |
739 | 739 | public function maintenance_mode( $enable = false ) { |
740 | 740 | global $wp_filesystem; |
741 | | $file = $wp_filesystem->abspath() . '.maintenance'; |
| 741 | $file = $wp_filesystem->abspath() . 'wordpress.maintenance'; |
742 | 742 | if ( $enable ) { |
743 | 743 | $this->skin->feedback('maintenance_start'); |
744 | 744 | // Create maintenance file to signal that we are upgrading |
diff --git wp-admin/includes/update-core.php wp-admin/includes/update-core.php
index 9f17a08..cc01e27 100644
|
|
if ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || CORE_UPGRADE_SKIP_NEW_BUNDL |
743 | 743 | /** |
744 | 744 | * Upgrade the core of WordPress. |
745 | 745 | * |
746 | | * This will create a .maintenance file at the base of the WordPress directory |
| 746 | * This will create a wordpress.maintenance file at the base of the WordPress directory |
747 | 747 | * to ensure that people can not access the web site, when the files are being |
748 | 748 | * copied to their locations. |
749 | 749 | * |
… |
… |
if ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || CORE_UPGRADE_SKIP_NEW_BUNDL |
756 | 756 | * The steps for the upgrader for after the new release is downloaded and |
757 | 757 | * unzipped is: |
758 | 758 | * 1. Test unzipped location for select files to ensure that unzipped worked. |
759 | | * 2. Create the .maintenance file in current WordPress base. |
| 759 | * 2. Create the wordpress.maintenance file in current WordPress base. |
760 | 760 | * 3. Copy new WordPress directory over old WordPress files. |
761 | 761 | * 4. Upgrade WordPress to new version. |
762 | 762 | * 4.1. Copy all files/folders other than wp-content |
763 | 763 | * 4.2. Copy any language files to WP_LANG_DIR (which may differ from WP_CONTENT_DIR |
764 | 764 | * 4.3. Copy any new bundled themes/plugins to their respective locations |
765 | 765 | * 5. Delete new WordPress directory path. |
766 | | * 6. Delete .maintenance file. |
| 766 | * 6. Delete wordpress.maintenance file. |
767 | 767 | * 7. Remove old files. |
768 | 768 | * 8. Delete 'update_core' option. |
769 | 769 | * |
… |
… |
function update_core($from, $to) { |
929 | 929 | apply_filters( 'update_feedback', __( 'Enabling Maintenance mode…' ) ); |
930 | 930 | // Create maintenance file to signal that we are upgrading |
931 | 931 | $maintenance_string = '<?php $upgrading = ' . time() . '; ?>'; |
932 | | $maintenance_file = $to . '.maintenance'; |
| 932 | $maintenance_file = $to . 'wordpress.maintenance'; |
933 | 933 | $wp_filesystem->delete($maintenance_file); |
934 | 934 | $wp_filesystem->put_contents($maintenance_file, $maintenance_string, FS_CHMOD_FILE); |
935 | 935 | |
diff --git wp-includes/load.php wp-includes/load.php
index 9d247ba..2f3e987 100644
|
|
function wp_favicon_request() { |
160 | 160 | /** |
161 | 161 | * Die with a maintenance message when conditions are met. |
162 | 162 | * |
163 | | * Checks for a file in the WordPress root directory named ".maintenance". |
| 163 | * Checks for a file in the WordPress root directory named "wordpress.maintenance" |
| 164 | * or '.maintenance' (deprecated). |
| 165 | * |
164 | 166 | * This file will contain the variable $upgrading, set to the time the file |
165 | 167 | * was created. If the file was created less than 10 minutes ago, WordPress |
166 | 168 | * enters maintenance mode and displays a message. |
… |
… |
function wp_favicon_request() { |
174 | 176 | * @global int $upgrading the unix timestamp marking when upgrading WordPress began. |
175 | 177 | */ |
176 | 178 | function wp_maintenance() { |
177 | | if ( ! file_exists( ABSPATH . '.maintenance' ) || wp_installing() ) |
| 179 | if ( ( ! file_exists( ABSPATH . 'wordpress.maintenance' ) && ! file_exists( ABSPATH . '.maintenance' ) ) || wp_installing() ) |
178 | 180 | return; |
179 | 181 | |
180 | 182 | global $upgrading; |
| 183 | if ( file_exists( ABSPATH . 'wordpress.maintenance' ) ) { |
| 184 | include ( ABSPATH . 'wordpress.maintenance' ); |
| 185 | } else { |
| 186 | include ( ABSPATH . '.maintenance' ); |
| 187 | } |
181 | 188 | |
182 | | include( ABSPATH . '.maintenance' ); |
183 | 189 | // If the $upgrading timestamp is older than 10 minutes, don't die. |
184 | 190 | if ( ( time() - $upgrading ) >= 600 ) |
185 | 191 | return; |