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: http://core.svn.wordpress.org/trunk@21507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dc58551658
commit
8eb21fd381
|
@ -626,7 +626,7 @@ default:
|
||||||
elseif ( is_multisite() && !$user->has_cap('read') )
|
elseif ( is_multisite() && !$user->has_cap('read') )
|
||||||
$redirect_to = get_dashboard_url( $user->ID );
|
$redirect_to = get_dashboard_url( $user->ID );
|
||||||
elseif ( !$user->has_cap('edit_posts') )
|
elseif ( !$user->has_cap('edit_posts') )
|
||||||
$redirect_to = get_edit_user_link();
|
$redirect_to = admin_url('profile.php');
|
||||||
}
|
}
|
||||||
wp_safe_redirect($redirect_to);
|
wp_safe_redirect($redirect_to);
|
||||||
exit();
|
exit();
|
||||||
|
|
Loading…
Reference in New Issue