Changeset 13351
- Timestamp:
- 02/23/2010 11:46:07 PM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class.wp-styles.php
r13193 r13351 69 69 $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle ); 70 70 if ( 'rtl' === $this->text_direction && isset($this->registered[$handle]->extra['rtl']) && $this->registered[$handle]->extra['rtl'] ) { 71 if ( is_bool( $this->registered[$handle]->extra['rtl'] ) ) 72 $rtl_href = str_replace( '.css', '-rtl.css', $this->_css_href( $this->registered[$handle]->src , $ver, "$handle-rtl" )); 73 else 71 if ( is_bool( $this->registered[$handle]->extra['rtl'] ) ) { 72 $suffix = isset( $this->registered[$handle]->extra['suffix'] ) ? $this->registered[$handle]->extra['suffix'] : ''; 73 $rtl_href = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $this->_css_href( $this->registered[$handle]->src , $ver, "$handle-rtl" )); 74 } else { 74 75 $rtl_href = $this->_css_href( $this->registered[$handle]->extra['rtl'], $ver, "$handle-rtl" ); 76 } 75 77 76 78 $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-rtl-css' $title href='$rtl_href' type='text/css' media='$media' />\n", $handle ); -
trunk/wp-includes/script-loader.php
r13310 r13351 434 434 435 435 $rtl_styles = array( 'wp-admin', 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' ); 436 // Any rtl stylesheets that don't have a .dev version for ltr 437 $no_suffix = array( 'farbtastic' ); 436 438 437 439 // all colors stylesheets need to have the same query strings (cache manifest compat) … … 469 471 $styles->add( 'custom-navigation', "/wp-admin/css/custom-navigation$suffix.css", array(), '20100215' ); 470 472 471 foreach ( $rtl_styles as $rtl_style ) 473 foreach ( $rtl_styles as $rtl_style ) { 472 474 $styles->add_data( $rtl_style, 'rtl', true ); 475 if ( $suffix && ! in_array( $rtl_style, $no_suffix ) ) 476 $styles->add_data( $rtl_style, 'suffix', $suffix ); 477 } 473 478 } 474 479
Note: See TracChangeset
for help on using the changeset viewer.