Send Retry-After header when in maintenance mode, props sirzooro, fixes #10439
git-svn-id: http://svn.automattic.com/wordpress/trunk@11820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5dc37883b2
commit
cd03493d94
|
@ -123,6 +123,7 @@ if ( file_exists(ABSPATH . '.maintenance') && !defined('WP_INSTALLING') ) {
|
||||||
$protocol = 'HTTP/1.0';
|
$protocol = 'HTTP/1.0';
|
||||||
header( "$protocol 503 Service Unavailable", true, 503 );
|
header( "$protocol 503 Service Unavailable", true, 503 );
|
||||||
header( 'Content-Type: text/html; charset=utf-8' );
|
header( 'Content-Type: text/html; charset=utf-8' );
|
||||||
|
header( 'Retry-After: 600' );
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
Loading…
Reference in New Issue