xwp / wp-dependency-minification

Dependency Minification plugin for WordPress
http://wordpress.org/plugins/dependency-minification/
52 stars 10 forks source link

wp_localize_script variable lost in minification #28

Closed lkraav closed 11 years ago

lkraav commented 11 years ago

I'm seeing a variable getting lost (no "/* wp_localize_script($data_handle): */\n" visible in the source, while some others are) and it's killing the whole page's JS.

Investigating further. Opening the issue for some possible early feedback from core devs if this should even be possible, so I'm not chasing ghosts.

lkraav commented 11 years ago

At first sight, I'm seeing:

lkraav commented 11 years ago

Yes I'm convinced now handle extra data processing is broken when two scripts from a single group include extra data. Only the last one is added by wpdm. Seeing if I can patch this.

westonruter commented 11 years ago

I believe this is the same issue which was reported at http://wordpress.org/support/topic/jqueryjs-generated-css-error

westonruter commented 11 years ago

Released as version 0.9.5: http://wordpress.org/plugins/dependency-minification/ https://github.com/x-team/wp-dependency-minification/releases/tag/0.9.5