From 0c59eacb559fab647ed98fd26abafc2567846c19 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 8 Feb 2012 06:05:35 +0000 Subject: [PATCH] Use is_rtl() for html direction when possible. In sites.php, language_attributes() will always exist (MU vestige). When the DB is dead, language_attributes() is worse than a simple is_rtl() check. is_rtl() exists here due to wp_load_translations_early(). see #18180. git-svn-id: https://develop.svn.wordpress.org/trunk@19862 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/install.php | 2 +- wp-admin/network/sites.php | 2 +- wp-includes/functions.php | 2 +- wp-includes/load.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index 3876d45c84..2544295276 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -10,7 +10,7 @@ if ( false ) { ?> - + Error: PHP is not running diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 95902ebbd4..e1e534e32c 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -210,7 +210,7 @@ if ( isset( $_GET['action'] ) ) { wp_die( __( 'You are not allowed to change the current site.' ) ); ?> - > + > <?php _e( 'WordPress › Confirm your action' ); ?> diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 6f7030ae62..1a674d316a 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2657,7 +2657,7 @@ function dead_db() { wp_load_translations_early(); ?> -> +> <?php _e( 'Database Error' ); ?> diff --git a/wp-includes/load.php b/wp-includes/load.php index 5c0fdb485f..94e6339d27 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -168,7 +168,7 @@ function wp_maintenance() { header( 'Retry-After: 600' ); ?> - + > <?php _e( 'Maintenance' ); ?>