Fix includes for setup-config so that wp_die is defined. Props DD32. fixes #4997

git-svn-id: https://develop.svn.wordpress.org/trunk@6137 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-09-19 04:27:56 +00:00
parent 38a6848169
commit 6e8eb02d73
3 changed files with 23 additions and 9 deletions

View File

@@ -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('__') )