[wp-trac] Re: [WordPress Trac] #5794: Easily redirectable
wp_loginout
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 11 02:38:00 GMT 2008
#5794: Easily redirectable wp_loginout
-----------------------------------------+----------------------------------
Reporter: gViscardi | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version: 2.3.3
Severity: normal | Resolution:
Keywords: loginout redirect has-patch |
-----------------------------------------+----------------------------------
Comment (by Viper007Bond):
The thing I linked is a plugin -- it's not for modifying any core files.
Just upload and activate.
You could also use it to control them on an individual case, but it
wouldn't be the most elegant:
{{{
global $redirectto;
$redirectto = 'http://www.google.com/';
wp_loginout();
}}}
{{{
global $redirectto;
// a modification of the code I posted before that uses $redirectto
instead
}}}
So yeah, I guess having it as a parameter of `wp_loginout()` would be
useful.
--
Ticket URL: <http://trac.wordpress.org/ticket/5794#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list