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