[wp-hackers] requesting information about wp_*_style functions

Callum Macdonald lists.automattic.com at callum-macdonald.com
Fri Oct 31 02:49:46 GMT 2008

I'm fairly sure this won't cause any problems:
add_action('wp_head', 'wp_print_styles');

Worst case scenario, it'll be called twice on 2.7. But that won't output
the styles twice. The overhead will be minimal.

Cheers - Callum.

On Thu, 2008-10-30 at 09:16 -0400, Krusty Ruffle wrote:
> As it turns out, the current wordpress-mu trunk has $wp_version = '2.7', and
> $wpmu_version = '2.7-bleeding-edge' but does not include the call to
> wp_print_styles in the wp_head action. I'm hoping that is just a temporary
> oversight, or a lag in incorporating new code into wpmu, but it slightly
> complicates the idea of using version_compare()
> Or, I could just be really tired right now and should maybe look at it again
> when I have slept..?
> > Although I'd personally do a version check instead of did_action() on the
> > off-chance that a plugin needed to remove wp_print_styles from the wp_head
> > hook for some reason.
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list