diff --git a/wp-includes/class.wp-styles.php b/wp-includes/class.wp-styles.php index eb160670ca..46cb913bd3 100644 --- a/wp-includes/class.wp-styles.php +++ b/wp-includes/class.wp-styles.php @@ -107,17 +107,24 @@ class WP_Styles extends WP_Dependencies { } } - if ( isset($obj->extra['conditional']) && $obj->extra['conditional'] ) { - $tag = "\n"; + $conditional_pre = $conditional_post = ''; + if ( isset( $obj->extra['conditional'] ) && $obj->extra['conditional'] ) { + $conditional_pre = "\n"; } if ( $this->do_concat ) { + $this->print_html .= $conditional_pre; $this->print_html .= $tag; - if ( $inline_style = $this->print_inline_style( $handle, false ) ) + if ( $inline_style = $this->print_inline_style( $handle, false ) ) { $this->print_html .= sprintf( "\n", esc_attr( $handle ), $inline_style ); + } + $this->print_html .= $conditional_post; } else { + echo $conditional_pre; echo $tag; $this->print_inline_style( $handle ); + echo $conditional_post; } return true; diff --git a/wp-includes/version.php b/wp-includes/version.php index 66b467e302..24b6b29429 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31030'; +$wp_version = '4.2-alpha-31031'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.