owen

The changes don’t really merit a full version number upgrade, but I got tired of adding 0.0.1 to each release number.

This update fixes issues that people are having with the WordPress 1.5.1 beta. Primarily this has to do with the pluggable functions not being available to plugins until after all plugins are loaded. So if a plugin tries to access get_currentuserinfo() in the global scope (that’s one of the pluggable functions) then the plugin will short out and produce a nasty error on your home page.

Anyway, that’s fixed in this version of EzStatic. If you were including a script from EzStatic that accessed these functions it should work. In version 1.9.2 it doesn’t, hence the update.

The download is on the wp-hacks page.

Pluggable functions in WordPress 1.5.1 let you replace certain core functions with functions of your own using a plugin. A function can only be reassigned this way once, so you can’t install two plugins that plug the same function for different reasons. An example of what you can do with a pluggable function is replace the default email handler. I use this feature to have WordPress send mail directly through my MTA rather than use the native mail() funciton. This method is much faster on my server, and reduces what would be significant delays when posting comments.

The fix for EzStatic and pluggable functions is kind of tricky, if you’re interested. I basically have EzStatic ensure that it is the last plugin loaded, and then I include the pluggable functions myself. I assume that other plugins could also use this method if they require the pluggable functions to be present and don’t also try to insert a pluggable function themselves. Maybe there would be a little thrashing on the active_plugins options entry. Hmm.

Incidentally, quite a few people have contacted me about problems with plugins and 1.5.1. Are there really a lot of you using pre-release code? Are you all on the wp-testers mailing list? Crikey.