Make WordPress Core


Ignore:
Timestamp:
02/17/2016 05:10:53 PM (9 years ago)
Author:
ocean90
Message:

Script/Style Dependencies: Make sure that inline styles for handles without a source are printed.

This prevents breaking plugins which are adding inline styles to the wp-admin handle after [36341].

Props dd32, ocean90.
Fixes #35229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class.wp-scripts.php

    r35965 r36550  
    178178        }
    179179
     180        // A single item may alias a set of items, by having dependencies, but no source.
     181        if ( ! $obj->src ) {
     182            return true;
     183        }
     184
    180185        if ( ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && 0 === strpos( $src, $this->content_url ) ) ) {
    181186            $src = $this->base_url . $src;
Note: See TracChangeset for help on using the changeset viewer.