X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/6c8f14c09105d0afa4c1574215c59b5021040e76..refs/tags/wordpress-3.7:/wp-includes/class.wp-styles.php diff --git a/wp-includes/class.wp-styles.php b/wp-includes/class.wp-styles.php index fdfe5afe..927a7e73 100644 --- a/wp-includes/class.wp-styles.php +++ b/wp-includes/class.wp-styles.php @@ -50,7 +50,7 @@ class WP_Styles extends WP_Dependencies { $this->concat .= "$handle,"; $this->concat_version .= "$handle$ver"; - $this->print_code .= $this->get_data( $handle, 'after' ); + $this->print_code .= $this->print_inline_style( $handle, false ); return true; } @@ -87,7 +87,8 @@ class WP_Styles extends WP_Dependencies { if ( $this->do_concat ) { $this->print_html .= $tag; - $this->print_html .= $this->print_inline_style( $handle, false ); + if ( $inline_style = $this->print_inline_style( $handle, false ) ) + $this->print_html .= sprintf( "\n", $inline_style ); } else { echo $tag; $this->print_inline_style( $handle );