Allow people to hook into the main menu

git-svn-id: https://develop.svn.wordpress.org/trunk@1470 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-07-21 07:20:13 +00:00
parent 52f5b06f61
commit 0cf35bbafd
1 changed files with 10 additions and 12 deletions

View File

@ -6,18 +6,16 @@
// Menu item name // Menu item name
// The minimum level the user needs to access the item: between 0 and 10 // The minimum level the user needs to access the item: between 0 and 10
// The URL of the item's file // The URL of the item's file
$menu = array( $menu[5] = array(__('Write'), 1, 'post.php');
array(__('Write'), 1, 'post.php'), $menu[10] = array(__('Edit'), 1, 'edit.php');
array(__('Edit'), 1, 'edit.php'), $menu[15] = array(__('Categories'), 3, 'categories.php');
array(__('Categories'), 3, 'categories.php'), $menu[20] = array(__('Links'), 5, 'link-manager.php');
array(__('Links'), 5, 'link-manager.php'), $menu[25] = array(__('Users'), 3, 'users.php');
array(__('Users'), 3, 'users.php'), $menu[30] = array(__('Options'), 6, 'options-general.php');
array(__('Options'), 6, 'options-general.php'), $menu[35] = array(__('Plugins'), 8, 'plugins.php');
array(__('Plugins'), 8, 'plugins.php'), $menu[40] = array(__('Templates'), 4, 'templates.php');
array(__('Templates'), 4, 'templates.php'), $menu[45] = array(__('Upload'), get_settings('fileupload_minlevel'), 'upload.php');
array(__('Upload'), get_settings('fileupload_minlevel'), 'upload.php'), ksort($menu); // So other files can plugin
array(__('Profile'), 0, 'profile.php')
);
$self = preg_replace('|.*/wp-admin/|i', '', $_SERVER['PHP_SELF']); $self = preg_replace('|.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
if (!isset($parent_file)) $parent_file = ''; if (!isset($parent_file)) $parent_file = '';