Ticket #26316: 26316.diff
| File 26316.diff, 2.4 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/includes/misc.php
583 583 <?php 584 584 585 585 foreach ( $_wp_admin_css_colors as $color => $color_info ) : 586 586 $url = $color_info->url; 587 $suffix = '.min.css'; 588 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { 589 $url = preg_replace( '/.min.css$|.min.css(?=\?)/', '.css', $url ); 590 $suffix = '.css'; 591 } 592 if ( is_rtl() ) { 593 $url = str_replace( $suffix, '-rtl' . $suffix, $url ); 594 } 587 595 ?> 588 596 <div class="color-option <?php echo ( $color == $current_color ) ? 'selected' : ''; ?>"> 589 597 <input name="admin_color" id="admin_color_<?php echo esc_attr( $color ); ?>" type="radio" value="<?php echo esc_attr( $color ); ?>" class="tog" <?php checked( $color, $current_color ); ?> /> 590 <input type="hidden" class="css_url" value="<?php echo esc_url( $ color_info->url ); ?>" />598 <input type="hidden" class="css_url" value="<?php echo esc_url( $url ); ?>" /> 591 599 <input type="hidden" class="icon_colors" value="<?php echo esc_attr( json_encode( array( 'icons' => $color_info->icon_colors ) ) ); ?>" /> 592 600 <label for="admin_color_<?php echo esc_attr( $color ); ?>"><?php echo esc_html( $color_info->name ); ?></label> 593 601 <table class="color-palette"> -
src/wp-includes/class.wp-styles.php
65 65 $rel = isset($obj->extra['alt']) && $obj->extra['alt'] ? 'alternate stylesheet' : 'stylesheet'; 66 66 $title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : ''; 67 67 68 if ( 'colors' === $handle ) var_dump( $obj, $href ); 69 68 70 $tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle ); 69 71 if ( 'rtl' === $this->text_direction && isset($obj->extra['rtl']) && $obj->extra['rtl'] ) { 70 72 if ( is_bool( $obj->extra['rtl'] ) || 'replace' === $obj->extra['rtl'] ) { … … 82 84 $tag .= $rtl_tag; 83 85 } 84 86 } 85 87 if ( 'colors' === $handle ) var_dump( $rtl_href ); 86 88 if ( isset($obj->extra['conditional']) && $obj->extra['conditional'] ) { 87 89 $tag = "<!--[if {$obj->extra['conditional']}]>\n" . $tag . "<![endif]-->\n"; 88 90 }