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:
parent
0013fcda22
commit
9ca2d36ada
|
@ -1346,7 +1346,8 @@ function wp_die( $message, $title = '' ) {
|
||||||
<title><?php echo $title ?></title>
|
<title><?php echo $title ?></title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<link rel="stylesheet" href="<?php echo $admin_dir; ?>install.css" type="text/css" />
|
<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" />
|
<link rel="stylesheet" href="<?php echo $admin_dir; ?>install-rtl.css" type="text/css" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in New Issue