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:
Ryan Boren 2012-08-14 19:10:37 +00:00
parent dc58551658
commit 8eb21fd381
1 changed files with 1 additions and 1 deletions

View File

@ -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();