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; |