Changeset 8977
- Timestamp:
- 09/25/2008 07:33:53 PM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-add.php
r8697 r8977 11 11 12 12 $title = __('Add Link'); 13 $this_file = 'link-manager.php'; 14 $parent_file = 'edit.php'; 15 $submenu_file = 'link-manager.php'; 16 13 $parent_file = 'link-manager.php'; 17 14 18 15 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', -
trunk/wp-admin/menu.php
r8944 r8977 39 39 40 40 $menu[0] = array( __('Dashboard'), 'read', 'index.php' ); 41 $submenu['index.php'][5] = array( __('Overview'), 'read', 'index.php' ); 42 $submenu['index.php'][10] = array( __('Inbox'), 'read', 'inbox.php' ); 41 43 42 $menu[5] = array( __(' Content'), 'edit_posts', 'edit.php', 'wp-menu-open' );43 $submenu['edit.php'][5] = array( __(' Posts'), 'edit_posts', 'edit.php' );44 $submenu['edit.php'][10] = array( __('Comments'), 'edit_posts', 'edit-comments.php' );45 $submenu['edit.php'][15] = array( __('Media Library'), 'upload_files', 'upload.php' );46 $submenu['edit.php'][20] = array( __(' Links'), 'manage_links', 'link-manager.php' );47 $submenu['edit.php'][25] = array( __(' Pages'), 'edit_pages', 'edit-pages.php' );44 $menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', 'wp-menu-open' ); 45 $submenu['edit.php'][5] = array( __('Write'), 'edit_posts', 'post-new.php' ); 46 //$submenu['edit.php'][10] = array( __('Drafts'), 'edit_posts', 'edit.php?post_status=draft' ); 47 $submenu['edit.php'][15] = array( __('View All'), 'edit_posts', 'edit.php' ); 48 $submenu['edit.php'][20] = array( __('Tags'), 'manage_categories', 'edit-tags.php' ); 49 $submenu['edit.php'][25] = array( __('Categories'), 'manage_categories', 'categories.php' ); 48 50 49 $menu[10] = array( __(' Themes'), 'switch_themes', 'themes.php' );50 $submenu[' themes.php'][5] = array(__('Directory'), 'switch_themes', 'themes.php');51 $submenu[' themes.php'][10] = array(__('Theme Editor'), 'edit_themes', 'theme-editor.php');51 $menu[10] = array( __('Media'), 'upload_files', 'upload.php' ); 52 $submenu['upload.php'][5] = array( __('Upload New'), 'upload_files', 'media-1upload.php'); 53 $submenu['upload.php'][10] = array( __('View All'), 'upload_files', 'upload.php'); 52 54 53 $menu[15] = array( __('Utilities'), 'read', 'users.php' ); // placeholder - should be inbox 54 $submenu['users.php'][5] = array( __('Inbox'), 'read', 'inbox.php' ); 55 $submenu['users.php'][10] = array( __('Tags'), 'manage_categories', 'edit-tags.php' ); 56 $submenu['users.php'][15] = array( __('Categories'), 'manage_categories', 'categories.php' ); 57 $submenu['users.php'][20] = array( __('Link Categories'), 'manage_categories', 'edit-link-categories.php' ); 58 $submenu['users.php'][25] = array( __('Users'), 'edit_users', 'users.php' ); 59 $submenu['users.php'][30] = array( __('Import'), 'import', 'import.php' ); 60 $submenu['users.php'][35] = array( __('Export'), 'import', 'export.php' ); 55 $menu[15] = array( __('Links'), 'manage_links', 'link-manager.php' ); 56 $submenu['link-manager.php'][5] = array( __('Add New'), 'manage_links', 'link-add.php' ); 57 $submenu['link-manager.php'][10] = array( __('View All'), 'manage_links', 'link-manager.php' ); 58 $submenu['link-manager.php'][15] = array( __('Link Categories'), 'manage_categories', 'edit-link-categories.php' ); 61 59 62 $menu[20] = array(__('Settings'), 'manage_options', 'options-general.php'); 60 $menu[20] = array( __('Pages'), 'edit_pages', 'edit-pages.php' ); 61 $submenu['edit-pages.php'][5] = array( __('Write'), 'edit_pages', 'page-new.php' ); 62 //$submenu['edit-pages.php'][10] = array( __('Drafts'), 'edit_pages', 'edit-pages.php?post_status=draft' ); 63 $submenu['edit-pages.php'][15] = array( __('View All'), 'edit_pages', 'edit-pages.php' ); 64 65 $menu[25] = array( __('Comments'), 'edit_posts', 'edit-comments.php' ); 66 67 $menu[30] = array( __('Appearance'), 'switch_themes', 'themes.php' ); 68 $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); 69 $submenu['themes.php'][10] = array(__('Editor'), 'edit_themes', 'theme-editor.php'); 70 71 $menu[35] = array(__('Settings'), 'manage_options', 'options-general.php'); 63 72 $submenu['options-general.php'][10] = array(__('General'), 'manage_options', 'options-general.php'); 64 73 $submenu['options-general.php'][15] = array(__('Writing'), 'manage_options', 'options-writing.php'); … … 69 78 $submenu['options-general.php'][40] = array(__('Permalinks'), 'manage_options', 'options-permalink.php'); 70 79 $submenu['options-general.php'][45] = array(__('Miscellaneous'), 'manage_options', 'options-misc.php'); 80 $submenu['options-general.php'][50] = array( __('Users'), 'edit_users', 'users.php' ); 81 $submenu['options-general.php'][55] = array( __('Import'), 'import', 'import.php' ); 82 $submenu['options-general.php'][60] = array( __('Export'), 'import', 'export.php' ); 71 83 72 $menu[ 25] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );73 $submenu['plugins.php'][5] = array( __(' Plugins'), 'activate_plugins', 'plugins.php' );74 $submenu['plugins.php'][10] = array( __(' PluginEditor'), 'edit_plugins', 'plugin-editor.php' );75 $submenu['plugins.php'][15] = array(__(' Install Plugins'), 'install_plugins', 'plugin-install.php');84 $menu[40] = array( __('Plugins'), 'activate_plugins', 'plugins.php' ); 85 $submenu['plugins.php'][5] = array( __('Manage'), 'activate_plugins', 'plugins.php' ); 86 $submenu['plugins.php'][10] = array( __('Editor'), 'edit_plugins', 'plugin-editor.php' ); 87 $submenu['plugins.php'][15] = array(__('Browse'), 'install_plugins', 'plugin-install.php'); 76 88 77 89 // Back-compat for old top-levels 78 90 $_wp_real_parent_file['post.php'] = 'edit.php'; 79 91 $_wp_real_parent_file['post-new.php'] = 'edit.php'; 80 $_wp_real_parent_file['edit-comments.php'] = 'edit.php';81 92 82 93 do_action('_admin_menu'); -
trunk/wp-admin/page-new.php
r8691 r8977 10 10 require_once('admin.php'); 11 11 $title = __('New Page'); 12 $parent_file = 'edit.php'; 13 $submenu_file = 'edit-pages.php'; 12 $parent_file = 'edit-pages.php'; 14 13 $editing = true; 15 14 wp_enqueue_script('autosave'); -
trunk/wp-admin/post-new.php
r8691 r8977 11 11 $title = __('Create New Post'); 12 12 $parent_file = 'edit.php'; 13 $submenu_file = 'edit.php';14 13 $editing = true; 15 14 wp_enqueue_script('autosave');
Note: See TracChangeset
for help on using the changeset viewer.