[wp-hackers] Minify Scripts and CSS and why it isn't completely
possible
DD32
wordpress at dd32.id.au
Tue Dec 23 03:46:41 GMT 2008
In addition to that Jacob:
Why do so many plugin authors not use WP_DEBUG => true?
I have a huge list of plugins i've modified for myself who rely on undefined
constants, define constants multiple times, do not check for array items
existing before using (if( $_POST['something'] ) rather than if (
isset($_POST['something']) ) ). I'm not going to name and shame..
*But to all plugin authors:* Please add "*define('WP_DEBUG', true);*" to
your wp-config.php and check to see if theres any error/warnings generated
by your plugin, I've re-invented the wheel for a few plugins simply due to
getting pages of notices on my development installs (aside from those i've
modified)
For many i'm sure the answer will be "I've never heard of it" and in the
case of the Script/Styles API: "I need to support older versions of
wordpress" or "It was written before the API existed"
2008/12/23 Jacob Santos <wordpress at santosj.name>
> With WP Speedy and my plugin, I'm noticing that not all plugins are using
> the Script and Styles API. This prevents those stylesheets and scripts from
> being minified. I plan on going through the plugins I have and "fixing"
> them, and hopefully the patch is included for the future versions.
>
> Why don't more plugin and theme authors use the Scripts and Styles API? Is
> it a documentation issue or is it not high enough of a concern?
>
> Jacob Santos
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list