Make WordPress Core


Ignore:
Timestamp:
02/06/2014 10:15:25 PM (12 years ago)
Author:
nacin
Message:

Fix the conditional enqueueing/printing of colors stylesheets, without breaking dependencies.

fixes #18380.
see #20729 which should properly fix this.

File:
1 edited

Legend:

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

    r26107 r27111  
    6363
    6464        $href = $this->_css_href( $obj->src, $ver, $handle );
     65        if ( empty( $href ) ) {
     66            // Turns out there is nothing to print.
     67            return true;
     68        }
    6569        $rel = isset($obj->extra['alt']) && $obj->extra['alt'] ? 'alternate stylesheet' : 'stylesheet';
    6670        $title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : '';
Note: See TracChangeset for help on using the changeset viewer.