Fix redirect when already logged in.
git-svn-id: https://develop.svn.wordpress.org/trunk@3391 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fce486c48c
commit
de9f6698c2
@ -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
Block a user