Make WordPress Core


Ignore:
Timestamp:
01/02/2012 10:34:31 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 3.3

Location:
branches/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3

  • branches/3.3/wp-includes/functions.wp-styles.php

    r19054 r19650  
    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.