diff --git a/src/wp-login.php b/src/wp-login.php index 64852134da..ed3878c293 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -830,6 +830,9 @@ default: $redirect_to = get_dashboard_url( $user->ID ); elseif ( !$user->has_cap('edit_posts') ) $redirect_to = $user->has_cap( 'read' ) ? admin_url( 'profile.php' ) : home_url(); + + wp_redirect( $redirect_to ); + exit(); } wp_safe_redirect($redirect_to); exit();