Changeset 8126
- Timestamp:
- 06/19/2008 04:52:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/gears-manifest.php
r8083 r8126 26 26 wp_default_styles($wp_styles); 27 27 28 $get_lang = file_exists( ABSPATH . '/wp-config.php') ? file( ABSPATH . '/wp-config.php' ) : file( dirname(ABSPATH) . '/wp-config.php' );29 30 if ( is_array($get_lang) ) {31 foreach ( $get_lang as $val ) {32 if ( strpos( $val, "'WPLANG'" ) !== false ) {33 eval( $val );34 break;35 }36 }37 }38 39 if ( defined('WPLANG') && '' != WPLANG ) {40 if ( file_exists(ABSPATH . '/wp-content/languages') && @is_dir(ABSPATH . '/wp-content/languages') )41 $langdir = '/wp-content/languages/';42 else43 $langdir = '/wp-includes/languages/';44 45 $locale_file = ABSPATH . $langdir . WPLANG . '.php';46 if ( is_readable($locale_file) )47 include_once($locale_file);48 }49 50 $rtl = ( isset($text_direction) && 'rtl' == $text_direction ) ? true : false;51 52 28 $defaults = $man_version = ''; 53 29 foreach ( $wp_scripts->registered as $script ) { … … 67 43 $defaults .= '{ "url" : "' . $src . '?ver=' . $ver . '" },' . "\n"; 68 44 69 if ( $rtl &&isset($style->extra['rtl']) && $style->extra['rtl'] ) {45 if ( isset($style->extra['rtl']) && $style->extra['rtl'] ) { 70 46 if ( is_bool( $style->extra['rtl'] ) ) 71 47 $rtl_href = str_replace( '.css', '-rtl.css', $src );
Note: See TracChangeset
for help on using the changeset viewer.