From 3344bf4a6e44a5e1ce5f0c53357405fdeaca0e7b Mon Sep 17 00:00:00 2001 From: dd32 Date: Thu, 1 Apr 2010 10:30:58 +0000 Subject: [PATCH] Small coding standards cleanup of wp_die(); git-svn-id: http://svn.automattic.com/wordpress/trunk@13910 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 9dee68fc79..0842371b16 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2641,19 +2641,20 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) { $admin_dir = 'wp-admin/'; if ( !function_exists( 'did_action' ) || !did_action( 'admin_head' ) ) : - if ( !headers_sent() ){ + if ( !headers_sent() ) { status_header( $r['response'] ); nocache_headers(); header( 'Content-Type: text/html; charset=utf-8' ); } - if ( empty($title) ) { - $title = $have_gettext? __('WordPress › Error') : 'WordPress › Error'; - } + if ( empty($title) ) + $title = $have_gettext ? __('WordPress › Error') : 'WordPress › Error'; $text_direction = 'ltr'; - if ( isset($r['text_direction']) && $r['text_direction'] == 'rtl' ) $text_direction = 'rtl'; - if ( ( $wp_locale ) && ( 'rtl' == $wp_locale->text_direction ) ) $text_direction = 'rtl'; + if ( isset($r['text_direction']) && 'rtl' == $r['text_direction'] ) + $text_direction = 'rtl'; + elseif ( isset($wp_locale ) && 'rtl' == $wp_locale->text_direction ) + $text_direction = 'rtl'; ?>