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:
parent
b0f69e20a3
commit
f156be20cb
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue