Don't make useless status_header() call. fixes #4249
git-svn-id: https://develop.svn.wordpress.org/trunk@5458 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d7d91f0a18
commit
0aa8cebe86
@ -370,10 +370,6 @@ class wpdb {
|
|||||||
if ( !$this->show_errors )
|
if ( !$this->show_errors )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( function_exists( 'status_header' ) ) {
|
|
||||||
status_header( 503 );
|
|
||||||
}
|
|
||||||
|
|
||||||
header('Content-Type: text/html; charset=utf-8');
|
header('Content-Type: text/html; charset=utf-8');
|
||||||
|
|
||||||
if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false)
|
if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false)
|
||||||
|
Loading…
Reference in New Issue
Block a user