[wp-hackers] 1.5.1 Release

Daniel Westermann-Clark daniel at acceleration.net
Sun Apr 24 22:00:55 GMT 2005

On 2005-04-24 17:21:25 -0400, Mark Jaquith wrote:
> Heh.  Good in theory, except that the wp_logout hook is /*completely
> and utterly useless*/ because there is no way for a plugin to use
> it.  You can put that code in a plugin, but it will not be run on
> logout, because plugins aren't loaded when you do
> /wp-login.php?action=logout Doh!

The wp_logout action works from plugins in 1.5 (just checked).

To be sure, wp-login.php includes wp-config.php, which includes
wp-settings.php, which loads plugins.  If it's not working, make sure
you're calling exit().  Otherwise your redirect is overridden by the
code following the wp_logout action.

> Anyway, both 1239 and 1249 have a patch (actually, one patch for
> both), so the time (about 10 minutes) has already been spent.  1240
> is a bug.  1239 wouldn't be a problem if the wp_logout action
> worked, but it doesn't, and it makes the logout action consistent
> with the login action.

I wasn't doubting the reasoning for the issues, just throwing an idea
out there for consideration.  There are plenty of situations where the
wp_logout action isn't appropriate, and 1239 is one of them.  My

Daniel Westermann-Clark

More information about the wp-hackers mailing list