From 4f3a01a6be9fc267bf0fb3156146b8d2534f6c26 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 2 Feb 2004 02:35:08 +0000 Subject: [PATCH] Redirect to profile.php if user level == 0. git-svn-id: http://svn.automattic.com/wordpress/trunk@822 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/index.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/wp-admin/index.php b/wp-admin/index.php index d697f80f7..ea336b8d0 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -1,6 +1,13 @@ user_level) { + $redirect_to = $site . '/wp-admin/profile.php'; +} else { + $redirect_to = $site . '/wp-admin/post.php'; +} +header ("Location: $redirect_to"); ?> \ No newline at end of file