[wp-cvs] wordpress/wp-admin menu.php,1.19,1.20
Matthew Mullenweg
saxmatt at users.sourceforge.net
Wed Jul 21 07:20:16 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv599/wp-admin
Modified Files:
menu.php
Log Message:
Allow people to hook into the main menu
Index: menu.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/menu.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** menu.php 18 Jun 2004 00:22:08 -0000 1.19
--- menu.php 21 Jul 2004 07:20:13 -0000 1.20
***************
*** 7,22 ****
// The minimum level the user needs to access the item: between 0 and 10
// The URL of the item's file
! $menu = array(
! array(__('Write'), 1, 'post.php'),
! array(__('Edit'), 1, 'edit.php'),
! array(__('Categories'), 3, 'categories.php'),
! array(__('Links'), 5, 'link-manager.php'),
! array(__('Users'), 3, 'users.php'),
! array(__('Options'), 6, 'options-general.php'),
! array(__('Plugins'), 8, 'plugins.php'),
! array(__('Templates'), 4, 'templates.php'),
! array(__('Upload'), get_settings('fileupload_minlevel'), 'upload.php'),
! array(__('Profile'), 0, 'profile.php')
! );
$self = preg_replace('|.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
--- 7,20 ----
// The minimum level the user needs to access the item: between 0 and 10
// The URL of the item's file
! $menu[5] = array(__('Write'), 1, 'post.php');
! $menu[10] = array(__('Edit'), 1, 'edit.php');
! $menu[15] = array(__('Categories'), 3, 'categories.php');
! $menu[20] = array(__('Links'), 5, 'link-manager.php');
! $menu[25] = array(__('Users'), 3, 'users.php');
! $menu[30] = array(__('Options'), 6, 'options-general.php');
! $menu[35] = array(__('Plugins'), 8, 'plugins.php');
! $menu[40] = array(__('Templates'), 4, 'templates.php');
! $menu[45] = array(__('Upload'), get_settings('fileupload_minlevel'), 'upload.php');
! ksort($menu); // So other files can plugin
$self = preg_replace('|.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
More information about the cvs
mailing list