Fix redirect when already logged in.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-02 08:46:13 +00:00
parent b0f69e20a3
commit f156be20cb
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ default:
do_action('wp_authenticate', array(&$user_login, &$user_pass));
if ( $_POST ) {
if ( $user_login && $user_pass ) {
$user = new WP_User(0, $user_login);
// If the user can't edit posts, send them to their profile.