Make WordPress Core

Changeset 13193


Ignore:
Timestamp:
02/18/2010 10:30:28 AM (17 years ago)
Author:
azaozz
Message:

Fix the 'colors' meta-css src (boolean) value generating parse_url errors, fixes #11820

File:
1 edited

Legend:

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

    r12559 r13193  
    101101
    102102        function _css_href( $src, $ver, $handle ) {
    103                 if ( !preg_match('|^https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
     103                if ( !is_bool($src) && !preg_match('|^https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
    104104                        $src = $this->base_url . $src;
    105105                }
Note: See TracChangeset for help on using the changeset viewer.