Fix includes for setup-config so that wp_die is defined. Props DD32. fixes #4997
git-svn-id: http://svn.automattic.com/wordpress/trunk@6137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1241,9 +1241,11 @@ function wp_die( $message, $title = '' ) {
|
||||
$admin_dir = 'wp-admin/';
|
||||
|
||||
if ( !function_exists('did_action') || !did_action('admin_head') ) :
|
||||
status_header(500);
|
||||
nocache_headers();
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
if( !headers_sent() ){
|
||||
status_header(500);
|
||||
nocache_headers();
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
}
|
||||
|
||||
if ( empty($title) ){
|
||||
if( function_exists('__') )
|
||||
|
||||
Reference in New Issue
Block a user