]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/functions.wp-styles.php
Wordpress 3.3.1
[autoinstalls/wordpress.git] / wp-includes / functions.wp-styles.php
index 8a887e8e0ae395950e2cf7dac5bc0b28a5e263e5..db8b583e98f6a6ce6fb490f4e82e06e014d3abaa 100644 (file)
  * @return bool True on success, false on failure.
  */
 function wp_print_styles( $handles = false ) {
-       do_action( 'wp_print_styles' );
        if ( '' === $handles ) // for wp_head
                $handles = false;
 
+       if ( ! $handles )
+               do_action( 'wp_print_styles' );
+
        global $wp_styles;
        if ( ! is_a( $wp_styles, 'WP_Styles' ) ) {
                if ( ! did_action( 'init' ) )