Fixed wp-admin/index.php redirection.
git-svn-id: http://svn.automattic.com/wordpress/trunk@824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9a309b8149
commit
3f247c34d6
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
require('../wp-config.php');
|
require('../wp-config.php');
|
||||||
|
|
||||||
$user = get_userdatabylogin($log);
|
get_currentuserinfo();
|
||||||
|
|
||||||
if (0 == $user->user_level) {
|
if (0 == $user_level) {
|
||||||
$redirect_to = $site . '/wp-admin/profile.php';
|
$redirect_to = $siteurl . '/wp-admin/profile.php';
|
||||||
} else {
|
} else {
|
||||||
$redirect_to = $site . '/wp-admin/post.php';
|
$redirect_to = $siteurl . '/wp-admin/post.php';
|
||||||
}
|
}
|
||||||
header ("Location: $redirect_to");
|
header ("Location: $redirect_to");
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue