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:
ryan
2007-09-19 04:27:56 +00:00
parent f25f33c4ba
commit 3ac0df5170
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('__') )