Changeset 4194 for trunk/wp-includes/theme.php
- Timestamp:
- 09/18/2006 11:40:19 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.