Make WordPress Core


Ignore:
Timestamp:
04/01/2010 10:30:58 AM (15 years ago)
Author:
dd32
Message:

Small coding standards cleanup of wp_die();

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r13891 r13910  
    26422642
    26432643    if ( !function_exists( 'did_action' ) || !did_action( 'admin_head' ) ) :
    2644     if ( !headers_sent() ){
     2644    if ( !headers_sent() ) {
    26452645        status_header( $r['response'] );
    26462646        nocache_headers();
     
    26482648    }
    26492649
    2650     if ( empty($title) ) {
    2651         $title = $have_gettext? __('WordPress › Error') : 'WordPress › Error';
    2652     }
     2650    if ( empty($title) )
     2651        $title = $have_gettext ? __('WordPress › Error') : 'WordPress › Error';
    26532652
    26542653    $text_direction = 'ltr';
    2655     if ( isset($r['text_direction']) && $r['text_direction'] == 'rtl' ) $text_direction = 'rtl';
    2656     if ( ( $wp_locale ) && ( 'rtl' == $wp_locale->text_direction ) ) $text_direction = 'rtl';
     2654    if ( isset($r['text_direction']) && 'rtl' == $r['text_direction'] )
     2655        $text_direction = 'rtl';
     2656    elseif ( isset($wp_locale ) && 'rtl' == $wp_locale->text_direction )
     2657        $text_direction = 'rtl';
    26572658?>
    26582659<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Note: See TracChangeset for help on using the changeset viewer.