Wordpress 3.7
[autoinstalls/wordpress.git] / wp-includes / class.wp-styles.php
index b1241b30460077b25b5eff35b187ea0d6154525d..927a7e73073a961c4bdc78b68bdf7d70303ca0a8 100644 (file)
@@ -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( "<style type='text/css'>\n%s\n</style>\n", $inline_style );
                } else {
                        echo $tag;
                        $this->print_inline_style( $handle );