If it's a 0 level user direct to profile page instead of post page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
37b130e30c
commit
d46cb28736
|
@ -64,6 +64,12 @@ case 'login':
|
|||
$redirect_to = $HTTP_POST_VARS["redirect_to"];
|
||||
}
|
||||
|
||||
$user = get_userdatabylogin($log);
|
||||
|
||||
if (0 == $user->user_level) {
|
||||
$redirect_to = $site . '/wp-admin/profile.php';
|
||||
}
|
||||
|
||||
function login() {
|
||||
global $wpdb, $log, $pwd, $error, $user_ID;
|
||||
global $tableusers, $pass_is_md5;
|
||||
|
|
Loading…
Reference in New Issue