WordPress.org

Make WordPress Core

Ticket #19510: 19510.diff

File 19510.diff, 601 bytes (added by nacin, 6 years ago)
  • wp-includes/functions.wp-styles.php

     
    1818 * @return bool True on success, false on failure.
    1919 */
    2020function wp_print_styles( $handles = false ) {
    21         do_action( 'wp_print_styles' );
    2221        if ( '' === $handles ) // for wp_head
    2322                $handles = false;
    2423
     24        if ( ! $handles )
     25                do_action( 'wp_print_styles' );
     26
    2527        global $wp_styles;
    2628        if ( ! is_a( $wp_styles, 'WP_Styles' ) ) {
    2729                if ( ! did_action( 'init' ) )