urlencode login redirect. Props Viper007Bond. fixes #9817
git-svn-id: https://develop.svn.wordpress.org/trunk@11328 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ef4731798
commit
fe335afb5f
@ -187,7 +187,7 @@ function wp_login_url($redirect = '') {
|
||||
$login_url = site_url('wp-login.php', 'login');
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user