From 0080974df2c43f9cc5c403c98ce230576c18320b Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 24 May 2010 21:09:55 +0000 Subject: [PATCH] Use object names instead of 'Edit' in submenus. props jane, fixes #11274. git-svn-id: http://svn.automattic.com/wordpress/trunk@14856 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 96d8ed0551..0d43b94dbe 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -80,7 +80,7 @@ if ( is_multisite() || is_super_admin() ) { $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); $menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', '', 'open-if-no-js menu-top menu-icon-post', 'menu-posts', 'div' ); - $submenu['edit.php'][5] = array( __('Edit'), 'edit_posts', 'edit.php' ); + $submenu['edit.php'][5] = array( __('Posts'), 'edit_posts', 'edit.php' ); /* translators: add new post */ $submenu['edit.php'][10] = array( _x('Add New', 'post'), 'edit_posts', 'post-new.php' ); @@ -99,13 +99,13 @@ $menu[10] = array( __('Media'), 'upload_files', 'upload.php', '', 'menu-top menu $submenu['upload.php'][10] = array( _x('Add New', 'file'), 'upload_files', 'media-new.php'); $menu[15] = array( __('Links'), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'div' ); - $submenu['link-manager.php'][5] = array( __('Edit'), 'manage_links', 'link-manager.php' ); + $submenu['link-manager.php'][5] = array( __('Links'), 'manage_links', 'link-manager.php' ); /* translators: add new links */ $submenu['link-manager.php'][10] = array( _x('Add New', 'link'), 'manage_links', 'link-add.php' ); $submenu['link-manager.php'][15] = array( __('Link Categories'), 'manage_categories', 'edit-link-categories.php' ); $menu[20] = array( __('Pages'), 'edit_pages', 'edit.php?post_type=page', '', 'menu-top menu-icon-page', 'menu-pages', 'div' ); - $submenu['edit.php?post_type=page'][5] = array( __('Edit'), 'edit_pages', 'edit.php?post_type=page' ); + $submenu['edit.php?post_type=page'][5] = array( __('Pages'), 'edit_pages', 'edit.php?post_type=page' ); /* translators: add new page */ $submenu['edit.php?post_type=page'][10] = array( _x('Add New', 'page'), 'edit_pages', 'post-new.php?post_type=page' ); @@ -131,7 +131,7 @@ foreach ( (array) get_post_types( array('show_ui' => true, '_builtin' => false) $ptype_menu_position++; $menu[$ptype_menu_position] = array( esc_attr( $ptype_obj->labels->name ), $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype", '', 'menu-top menu-icon-' . $ptype_class, 'menu-posts-' . $ptype_for_id, $menu_icon ); - $submenu["edit.php?post_type=$ptype"][5] = array( $ptype_obj->labels->edit, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype"); + $submenu["edit.php?post_type=$ptype"][5] = array( $ptype_obj->labels->name, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype"); $submenu["edit.php?post_type=$ptype"][10] = array( $ptype_obj->labels->add_new, $ptype_obj->cap->edit_posts, "post-new.php?post_type=$ptype" ); $i = 15; @@ -173,7 +173,7 @@ if ( !empty($update_plugins->response) ) $menu_perms = get_site_option('menu_items', array()); if ( is_super_admin() || ( is_multisite() && isset($menu_perms['plugins']) && $menu_perms['plugins'] ) ) { $menu[65] = array( sprintf( __('Plugins %s'), "" . number_format_i18n($update_count) . "" ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'div' ); - $submenu['plugins.php'][5] = array( __('Installed'), 'activate_plugins', 'plugins.php' ); + $submenu['plugins.php'][5] = array( __('Plugins'), 'activate_plugins', 'plugins.php' ); /* translators: add new plugin */ $submenu['plugins.php'][10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php'); $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); @@ -187,7 +187,7 @@ else if ( current_user_can('list_users') ) { $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. - $submenu['users.php'][5] = array(__('Authors & Users'), 'list_users', 'users.php'); + $submenu['users.php'][5] = array(__('Users'), 'list_users', 'users.php'); $submenu['users.php'][10] = array(_x('Add New', 'user'), 'create_users', 'user-new.php'); $submenu['users.php'][15] = array(__('Your Profile'), 'read', 'profile.php');