mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-20 01:25:30 +01:00
Redirect to profile.php if user level == 0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
724274c8d3
commit
4f3a01a6be
@ -1,6 +1,13 @@
|
||||
<?php
|
||||
|
||||
/* This will possibly be more later but for now let's just redirect. */
|
||||
require('../wp-config.php');
|
||||
|
||||
header ('Location: post.php');
|
||||
$user = get_userdatabylogin($log);
|
||||
|
||||
if (0 == $user->user_level) {
|
||||
$redirect_to = $site . '/wp-admin/profile.php';
|
||||
} else {
|
||||
$redirect_to = $site . '/wp-admin/post.php';
|
||||
}
|
||||
header ("Location: $redirect_to");
|
||||
?>
|
Loading…
Reference in New Issue
Block a user