mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
If it's a 0 level user direct to profile page instead of post page.
git-svn-id: https://develop.svn.wordpress.org/trunk@820 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -63,6 +63,12 @@ case 'login':
|
||||
$pwd = $HTTP_POST_VARS["pwd"];
|
||||
$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;
|
||||
|
||||
Reference in New Issue
Block a user