Changeset 8595 for trunk/wp-settings.php
- Timestamp:
- 08/08/2008 10:49:35 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-settings.php
r8565 r8595 107 107 if ( !defined('WP_CONTENT_DIR') ) 108 108 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down 109 110 if ( file_exists(ABSPATH . '.maintenance') ) { 111 if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) { 112 require_once( WP_CONTENT_DIR . '/maintenance.php' ); 113 die(); 114 } 115 116 $protocol = $_SERVER["SERVER_PROTOCOL"]; 117 if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) 118 $protocol = 'HTTP/1.0'; 119 header( "$protocol 503 Service Unavailable", true, 503 ); 120 header( 'Content-Type: text/html; charset=utf-8' ); 121 ?> 122 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 123 <html xmlns="http://www.w3.org/1999/xhtml"> 124 <head> 125 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 126 <title>Maintenance</title> 127 128 </head> 129 <body> 130 <h1>Briefly unavailable for scheduled maintenance. Check back in a minute.</h1> 131 </body> 132 </html> 133 <?php 134 die(); 135 } 109 136 110 137 if ( !extension_loaded('mysql') && !file_exists(WP_CONTENT_DIR . '/db.php') )
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)