Avoid non-object error when wp_die()ing before is instantiated. Props technosailor. fixes #4042

git-svn-id: http://svn.automattic.com/wordpress/trunk@5129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-28 18:10:03 +00:00
parent 0013fcda22
commit 9ca2d36ada
1 changed files with 2 additions and 1 deletions

View File

@ -1346,7 +1346,8 @@ function wp_die( $message, $title = '' ) {
<title><?php echo $title ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php echo $admin_dir; ?>install.css" type="text/css" />
<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
<?php
if ( ( $wp_locale ) && ('rtl' == $wp_locale->text_direction) ) : ?>
<link rel="stylesheet" href="<?php echo $admin_dir; ?>install-rtl.css" type="text/css" />
<?php endif; ?>
</head>