[wp-hackers] Minify Scripts and CSS and why it isn't completely
lynne.pope at gmail.com
Tue Dec 23 04:59:39 GMT 2008
This has always been an issue with plugins but, for those who can, its not a
bad idea to always look at the plugin's code before using. The issue with
the API is a bit more complex though - if you are writing a script that is
designed to work with more than just WordPress it often makes sense to
ignore the WP Script/Styles API.
2008/12/23 DD32 <wordpress at dd32.id.au>
> 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
> 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
> 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
> > 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?
> > it a documentation issue or is it not high enough of a concern?
> > Jacob Santos
More information about the wp-hackers