[wp-hackers] 1.5.1 Release

Mark Jaquith mark.wordpress at txfx.net
Sun Apr 24 21:21:25 GMT 2005


Daniel Westermann-Clark wrote:

>On 2005-04-23 16:52:31 -0400, Mark Jaquith wrote:
>  
>
>>0001239: Allow a 'redirect_to' parameter on logout.  io_error wrote
>>some great code to show the login/logout form on the front page of
>>the blog.  With this patch, when using his code, you won't be thrown
>>to the default login page after every logout, but instead go back to
>>the page you were on.
>>http://mosquito.wordpress.org/view.php?id=1239
>>    
>>
>
>Plugins can hook into the wp_logout action to redirect somewhere other
>than the login page.  For example:
>
>add_action('wp_logout', 'example_logout');
>function example_logout() {
>  header('Location: ' . get_settings('siteurl'));
>  exit();
>}
>
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!

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-hackers/attachments/20050424/bb8a0d6b/attachment.html


More information about the wp-hackers mailing list