Make WordPress Core

Changeset 19649


Ignore:
Timestamp:
01/02/2012 10:32:00 PM (13 years ago)
Author:
ryan
Message:

Trigger the wp_print_syles action from wp_print_styles() only when handles are not passed. Prevents front-end styles from leaking into the admin. Props nacin. see #19510 for trunk

File:
1 edited

Legend:

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

    r19054 r19649  
    1919 */
    2020function wp_print_styles( $handles = false ) {
    21     do_action( 'wp_print_styles' );
    2221    if ( '' === $handles ) // for wp_head
    2322        $handles = false;
     23
     24    if ( ! $handles )
     25        do_action( 'wp_print_styles' );
    2426
    2527    global $wp_styles;
Note: See TracChangeset for help on using the changeset viewer.