Fixed a problem under wp 3.4.2 #18

merged 1 commit into from Nov 12, 2012

2 participants


I found there's a serious problem that it doesn't work under the new version of wordpress.

The hook should better to attached on 'wp_enqueue_scripts' than just 'wp', which will set the plugin to process before everything, and the queueing of scripts and stylesheets by theme is not done yet at the time.

Didn't test on older versions of wordpress, but those shall work as will.


I think it was an inevitable move.

Some themes (like reported here enqueue their stuff at the latest moment.

I usually register stylesheets etc. on init event, which leads me to no problem, even with the latest WP version.

Anyway, I feel it's safer to postpone to the latest moment possible the compilation process, agreed.

@oncletom oncletom merged commit 062772e into oncletom:master Nov 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment