Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I was wondering if there's some constant telling WordPress not to use the minified versions of scripts but instead load .dev ones. Already tried define('SCRIPT_DEBUG', true); but it only turned off script unification.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

I use a combination of constants on my local install.

define('CONCATENATE_SCRIPTS', false);
define('COMPRESS_SCRIPTS', false); // <--- this is likely the one you're after
define('COMPRESS_CSS', false);
define('SCRIPT_DEBUG', true);

I'd imagine the second constant listed above is the one you're after.

share|improve this answer
    
Could be me, but that didn't make it. Does it matter where in the wp-config those are dropped in? I put them at the end –  Zlatev Jul 28 '11 at 8:31
    
You may need to define them before the require line, mine are placed just before the $table_prefix var is set, and it works just fine for me.. –  t31os Jul 28 '11 at 8:36
    
Thanks, that fixed it. –  Zlatev Jul 28 '11 at 10:41
    
You're welcome. :) –  t31os Jul 28 '11 at 11:08
1  
All I needed was to add the 'SCRIPT_DEBUG' and WordPress started using the .dev.js versions. –  Tom Auger Feb 14 '12 at 21:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.