urlencode login redirect. Props Viper007Bond. fixes #9817
git-svn-id: http://svn.automattic.com/wordpress/trunk@11328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4f149f8c6d
commit
7d84965ef7
|
@ -187,7 +187,7 @@ function wp_login_url($redirect = '') {
|
||||||
$login_url = site_url('wp-login.php', 'login');
|
$login_url = site_url('wp-login.php', 'login');
|
||||||
|
|
||||||
if ( !empty($redirect) ) {
|
if ( !empty($redirect) ) {
|
||||||
$login_url = add_query_arg('redirect_to', $redirect, $login_url);
|
$login_url = add_query_arg('redirect_to', urlencode($redirect), $login_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
return apply_filters('login_url', $login_url, $redirect);
|
return apply_filters('login_url', $login_url, $redirect);
|
||||||
|
|
Loading…
Reference in New Issue