diff --git a/wp-includes/class.wp-dependencies.php b/wp-includes/class.wp-dependencies.php
index c051770b12..a0d68c97a3 100644
--- a/wp-includes/class.wp-dependencies.php
+++ b/wp-includes/class.wp-dependencies.php
@@ -98,21 +98,6 @@ class WP_Dependencies {
foreach ( $this->to_do as $key => $handle ) {
if ( !in_array($handle, $this->done, true) && isset($this->registered[$handle]) ) {
-
- /*
- * A single item may alias a set of items, by having dependencies,
- * but no source. Queuing the item queues the dependencies.
- *
- * Example: The extending class WP_Scripts is used to register 'scriptaculous' as a set of registered handles:
- * add( 'scriptaculous', false, array( 'scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls' ) );
- *
- * The src property is false.
- */
- if ( ! $this->registered[$handle]->src ) {
- $this->done[] = $handle;
- continue;
- }
-
/*
* Attempt to process the item. If successful,
* add the handle to the done array.
diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php
index 298eda7b5b..5d8fb17ae3 100644
--- a/wp-includes/class.wp-scripts.php
+++ b/wp-includes/class.wp-scripts.php
@@ -177,6 +177,11 @@ class WP_Scripts extends WP_Dependencies {
echo $cond_after;
}
+ // A single item may alias a set of items, by having dependencies, but no source.
+ if ( ! $obj->src ) {
+ return true;
+ }
+
if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && 0 === strpos( $src, $this->content_url ) ) ) {
$src = $this->base_url . $src;
}
diff --git a/wp-includes/class.wp-styles.php b/wp-includes/class.wp-styles.php
index e462f8c111..463b9a3645 100644
--- a/wp-includes/class.wp-styles.php
+++ b/wp-includes/class.wp-styles.php
@@ -72,11 +72,20 @@ class WP_Styles extends WP_Dependencies {
else
$media = 'all';
- $href = $this->_css_href( $obj->src, $ver, $handle );
- if ( empty( $href ) ) {
- // Turns out there is nothing to print.
+ // A single item may alias a set of items, by having dependencies, but no source.
+ if ( ! $obj->src ) {
+ if ( $inline_style = $this->print_inline_style( $handle, false ) ) {
+ $inline_style = sprintf( "\n", esc_attr( $handle ), $inline_style );
+ if ( $this->do_concat ) {
+ $this->print_html .= $inline_style;
+ } else {
+ echo $inline_style;
+ }
+ }
return true;
}
+
+ $href = $this->_css_href( $obj->src, $ver, $handle );
$rel = isset($obj->extra['alt']) && $obj->extra['alt'] ? 'alternate stylesheet' : 'stylesheet';
$title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : '';
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 35cad2403f..461e4cc50b 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.5-alpha-36549';
+$wp_version = '4.5-alpha-36550';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.