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

git-svn-id: https://develop.svn.wordpress.org/trunk@5129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-28 18:10:03 +00:00
parent 82a40d63e6
commit 0d281aa632

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>