[wp-hackers] Minify Scripts and CSS and why it isn't completely possible

Matt Martz mdmartz at sivel.net
Tue Dec 23 17:09:23 GMT 2008

On Tue, Dec 23, 2008 at 11:09 AM, Vladimir Prelovac <vprelovac at gmail.com> wrote:
> Regarding WP_Styles the main problem that is turning people off from using
> it is that wp_print_styles is still not happening automatically (like
> wp_print_scripts in wp_head) but you need to call it manually (this goes
> from my memory and I think it's still not fixed in 2.7).

In 2.7 wp_print_styles is run on wp_head automatically with a priority
of 9.  So you need to hook into wp_head with a priority of 8 to get it
to work.

Matt Martz
matt at sivel.net

More information about the wp-hackers mailing list