From f90fa97fb22c6dbce3e2a4ac5e24204fd83a7f94 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 19 Jun 2008 16:52:52 +0000 Subject: [PATCH] Always load RTL CSS in manifest. Props azaozz. fixes #7154 git-svn-id: http://svn.automattic.com/wordpress/trunk@8126 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/gears-manifest.php | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/wp-admin/gears-manifest.php b/wp-admin/gears-manifest.php index cfb60fcdc..644595198 100644 --- a/wp-admin/gears-manifest.php +++ b/wp-admin/gears-manifest.php @@ -25,30 +25,6 @@ wp_default_scripts($wp_scripts); $wp_styles = new WP_Styles(); wp_default_styles($wp_styles); -$get_lang = file_exists( ABSPATH . '/wp-config.php') ? file( ABSPATH . '/wp-config.php' ) : file( dirname(ABSPATH) . '/wp-config.php' ); - -if ( is_array($get_lang) ) { - foreach ( $get_lang as $val ) { - if ( strpos( $val, "'WPLANG'" ) !== false ) { - eval( $val ); - break; - } - } -} - -if ( defined('WPLANG') && '' != WPLANG ) { - if ( file_exists(ABSPATH . '/wp-content/languages') && @is_dir(ABSPATH . '/wp-content/languages') ) - $langdir = '/wp-content/languages/'; - else - $langdir = '/wp-includes/languages/'; - - $locale_file = ABSPATH . $langdir . WPLANG . '.php'; - if ( is_readable($locale_file) ) - include_once($locale_file); -} - -$rtl = ( isset($text_direction) && 'rtl' == $text_direction ) ? true : false; - $defaults = $man_version = ''; foreach ( $wp_scripts->registered as $script ) { if ( empty($script->src) || strpos($script->src, 'tiny_mce_config.php') ) continue; @@ -66,7 +42,7 @@ foreach ( $wp_styles->registered as $style ) { if ( 'colors' == $style->handle ) $src = 'css/colors-classic.css'; $defaults .= '{ "url" : "' . $src . '?ver=' . $ver . '" },' . "\n"; - if ( $rtl && isset($style->extra['rtl']) && $style->extra['rtl'] ) { + if ( isset($style->extra['rtl']) && $style->extra['rtl'] ) { if ( is_bool( $style->extra['rtl'] ) ) $rtl_href = str_replace( '.css', '-rtl.css', $src ); else