X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5aa86a9053fb0fa15846bb60aac2fb8fdfff524a..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 6455fe47..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 ); @@ -135,7 +136,7 @@ class WP_Styles extends WP_Dependencies { } function _css_href( $src, $ver, $handle ) { - if ( !is_bool($src) && !preg_match('|^https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) { + if ( !is_bool($src) && !preg_match('|^(https?:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) { $src = $this->base_url . $src; } @@ -168,4 +169,3 @@ class WP_Styles extends WP_Dependencies { $this->print_html = ''; } } -