From fce38c2c1face9439d01d4df8469559d39032323 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 7 Oct 2006 19:12:33 +0000 Subject: [PATCH] RTL support for login sand wp_die() from Sewar. fixes #3136 git-svn-id: http://svn.automattic.com/wordpress/trunk@4359 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 51 ++++++++------------------------------- wp-login.php | 10 +++++--- 2 files changed, 16 insertions(+), 45 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1378f91134..f6d58f8f92 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1095,62 +1095,31 @@ function wp_nonce_ays($action) { } function wp_die($message, $title = '') { + global $wp_locale; + header('Content-Type: text/html; charset=utf-8'); if ( empty($title) ) $title = __('WordPress › Error'); if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') ) - $logo_src = 'images/wordpress-logo.png'; + $admin_dir = ''; else - $logo_src = 'wp-admin/images/wordpress-logo.png'; + $admin_dir = 'wp-admin/'; ?> - +> <?php echo $title ?> - + +text_direction) ) : ?> + + -

WordPress

+

WordPress

diff --git a/wp-login.php b/wp-login.php index 0da24f61ff..91cf01b42e 100644 --- a/wp-login.php +++ b/wp-login.php @@ -23,15 +23,18 @@ if ( defined('RELOCATE') ) { // Move flag is set // Rather than duplicating this HTML all over the place, we'll stick it in function function login_header($title = 'Login', $message = '') { - global $errors, $error; + global $errors, $error, $wp_locale; ?> - +> <?php bloginfo('name'); ?> › <?php echo $title; ?> +text_direction) ) : ?> + +