Use admin_url() instead of get_edit_user_link() in wp-login.php since cookies are not yet set. Props SergeyBiryukov. fixes #14787
git-svn-id: https://develop.svn.wordpress.org/trunk@21507 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5cbcb6a764
commit
a6015df392
@ -626,7 +626,7 @@ default:
|
||||
elseif ( is_multisite() && !$user->has_cap('read') )
|
||||
$redirect_to = get_dashboard_url( $user->ID );
|
||||
elseif ( !$user->has_cap('edit_posts') )
|
||||
$redirect_to = get_edit_user_link();
|
||||
$redirect_to = admin_url('profile.php');
|
||||
}
|
||||
wp_safe_redirect($redirect_to);
|
||||
exit();
|
||||
|
Loading…
Reference in New Issue
Block a user