retlehs/roots — Issue #315: roots_print_scripts() breaks wp_localize_script()
Author: rideearthtom
Created: 2012-02-29 16:18:28+00:00
State: open

Been floundering in a sea of code for about two hours wondering why a plugin stopped working... the reason is thus:

roots_print_scripts() seems to re-order the output of scripts enqueued by wp_enqueue_script() and any corresponding wp_localize_script() that have been made in association with them.

e.g.

'''html

'''

becomes

'''html

'''

thus breaking any code in the external .js file that references the variable that hasn't been declared because of the order change.

I don't know what roots_print_scripts() does but I've simply commented out the action hook for now...