Changeset 4194
- Timestamp:
- 09/18/2006 11:40:19 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r4144 r4194 19 19 <title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title> 20 20 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 21 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?> 22 <link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" /> 23 <?php endif; ?> 21 24 <script type="text/javascript"> 22 25 //<![CDATA[ -
trunk/wp-includes/default-filters.php
r4120 r4194 145 145 // Actions 146 146 add_action('wp_head', 'rsd_link'); 147 add_action('wp_head', 'locale_stylesheet'); 147 148 add_action('publish_future_post', 'wp_publish_post', 10, 1); 148 149 add_action('wp_head', 'noindex', 1); -
trunk/wp-includes/functions.php
r4181 r4194 1112 1112 if ( empty($title) ) 1113 1113 $title = __('WordPress › Error'); 1114 1115 if ( strstr($_SERVER['PHP_SELF'], 'wp-admin') ) 1116 $logo_src = 'images/wordpress-logo.png'; 1117 else 1118 $logo_src = 'wp-admin/images/wordpress-logo.png'; 1119 1114 1120 ?> 1115 1121 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 1157 1163 </head> 1158 1164 <body> 1159 <h1 id="logo"><img alt="WordPress" src="<?php echo get_option('siteurl'); ?>/wp-admin/images/wordpress-logo.png" /></h1>1165 <h1 id="logo"><img alt="WordPress" src="<?php echo $logo_src; ?>" /></h1> 1160 1166 <p><?php echo $message; ?></p> 1161 1167 </body> -
trunk/wp-includes/locale.php
r3676 r4194 12 12 13 13 var $meridiem; 14 15 var $text_direction = ''; 16 var $locale_vars = array('text_direction'); 14 17 15 18 function init() { … … 84 87 $this->meridiem['AM'] = __('AM'); 85 88 $this->meridiem['PM'] = __('PM'); 89 90 $this->_load_locale_data(); 91 } 92 93 function _load_locale_data() { 94 $locale = get_locale(); 95 $locale_file = ABSPATH . "wp-includes/languages/$locale.php"; 96 if ( !file_exists($locale_file) ) 97 return; 98 99 include($locale_file); 100 101 foreach ( $this->locale_vars as $var ) { 102 $this->$var = $$var; 103 } 86 104 } 87 105 -
trunk/wp-includes/theme.php
r4144 r4194 24 24 $stylesheet_uri = $stylesheet_dir_uri . "/style.css"; 25 25 return apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri); 26 } 27 28 function get_locale_stylesheet_uri() { 29 global $wp_locale; 30 $stylesheet_dir_uri = get_stylesheet_directory_uri(); 31 $dir = get_stylesheet_directory(); 32 $locale = get_locale(); 33 if ( file_exists("$dir/$locale.css") ) 34 $stylesheet_uri = "$stylesheet_dir_uri/$locale.css"; 35 else if ( !empty($wp_locale->text_direction) && file_exists("$dir/{$wp_locale->text_direction}.css") ) 36 $stylesheet_uri = "$stylesheet_dir_uri/{$wp_locale->text_direction}.css"; 37 else 38 $stylesheet_uri = ''; 39 return apply_filters('locale_stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri); 26 40 } 27 41 … … 370 384 } 371 385 386 function locale_stylesheet() { 387 $stylesheet = get_locale_stylesheet_uri(); 388 if ( empty($stylesheet) ) 389 return; 390 echo '<link rel="stylesheet" href="' . $stylesheet . '" type="text/css" media="screen" />'; 391 } 392 372 393 function validate_current_theme() { 373 394 // Don't validate during an install/upgrade.
Note: See TracChangeset
for help on using the changeset viewer.