mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user