mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 04:25:07 +00:00
Don't call the function if it doesn't exist yet. fixes #4249
git-svn-id: http://svn.automattic.com/wordpress/trunk@5455 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1fb3798eb5
commit
51ace86089
@ -370,7 +370,10 @@ class wpdb {
|
|||||||
if ( !$this->show_errors )
|
if ( !$this->show_errors )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
status_header( 503 );
|
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…
x
Reference in New Issue
Block a user