mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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