Changeset 17864
- Timestamp:
- 05/11/2011 08:09:28 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r17822 r17864 25 25 $menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'div' ); 26 26 27 $submenu[ 'index.php' ][0] = array( __(' Dashboard'), 'read', 'index.php' );27 $submenu[ 'index.php' ][0] = array( __('Home'), 'read', 'index.php' ); 28 28 29 29 if ( is_multisite() ) { … … 73 73 74 74 $menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', '', 'open-if-no-js menu-top menu-icon-post', 'menu-posts', 'div' ); 75 $submenu['edit.php'][5] = array( __(' Posts'), 'edit_posts', 'edit.php' );75 $submenu['edit.php'][5] = array( __('All Posts'), 'edit_posts', 'edit.php' ); 76 76 /* translators: add new post */ 77 77 $submenu['edit.php'][10] = array( _x('Add New', 'post'), 'edit_posts', 'post-new.php' ); … … 92 92 93 93 $menu[15] = array( __('Links'), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'div' ); 94 $submenu['link-manager.php'][5] = array( __(' Links'), 'manage_links', 'link-manager.php' );94 $submenu['link-manager.php'][5] = array( __('All Links'), 'manage_links', 'link-manager.php' ); 95 95 /* translators: add new links */ 96 96 $submenu['link-manager.php'][10] = array( _x('Add New', 'link'), 'manage_links', 'link-add.php' ); … … 98 98 99 99 $menu[20] = array( __('Pages'), 'edit_pages', 'edit.php?post_type=page', '', 'menu-top menu-icon-page', 'menu-pages', 'div' ); 100 $submenu['edit.php?post_type=page'][5] = array( __(' Pages'), 'edit_pages', 'edit.php?post_type=page' );100 $submenu['edit.php?post_type=page'][5] = array( __('All Pages'), 'edit_pages', 'edit.php?post_type=page' ); 101 101 /* translators: add new page */ 102 102 $submenu['edit.php?post_type=page'][10] = array( _x('Add New', 'page'), 'edit_pages', 'post-new.php?post_type=page' ); … … 114 114 $menu[25] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='pending-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php', '', 'menu-top menu-icon-comments', 'menu-comments', 'div' ); 115 115 unset($awaiting_mod); 116 117 $submenu[ 'edit-comments.php' ][0] = array( __('All Comments'), 'edit_posts', 'edit-comments.php' ); 116 118 117 119 $_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group … … 138 140 139 141 $menu[$ptype_menu_position] = array( esc_attr( $ptype_obj->labels->menu_name ), $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype", '', 'menu-top menu-icon-' . $ptype_class, 'menu-posts-' . $ptype_for_id, $menu_icon ); 140 $submenu["edit.php?post_type=$ptype"][5] = array( $ptype_obj->labels-> menu_name, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype");142 $submenu["edit.php?post_type=$ptype"][5] = array( $ptype_obj->labels->all_items, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype"); 141 143 $submenu["edit.php?post_type=$ptype"][10] = array( $ptype_obj->labels->add_new, $ptype_obj->cap->edit_posts, "post-new.php?post_type=$ptype" ); 142 144 … … 181 183 if ( ! is_multisite() ) { 182 184 /* translators: add new plugin */ 183 $submenu['plugins.php'][5] = array( __(' Plugins'), 'activate_plugins', 'plugins.php' );185 $submenu['plugins.php'][5] = array( __('Installed Plugins'), 'activate_plugins', 'plugins.php' ); 184 186 $submenu['plugins.php'][10] = array( _x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php' ); 185 187 $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); … … 195 197 if ( current_user_can('list_users') ) { 196 198 $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. 197 $submenu['users.php'][5] = array(__(' Users'), 'list_users', 'users.php');199 $submenu['users.php'][5] = array(__('All Users'), 'list_users', 'users.php'); 198 200 if ( current_user_can('create_users') ) 199 201 $submenu['users.php'][10] = array(_x('Add New', 'user'), 'create_users', 'user-new.php'); -
trunk/wp-includes/post.php
r17748 r17864 1167 1167 'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ), 1168 1168 'parent_item_colon' => array( null, __('Parent Page:') ), 1169 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ) 1169 1170 ); 1170 1171 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; … … 1188 1189 if ( !isset( $object->labels['menu_name'] ) && isset( $object->labels['name'] ) ) 1189 1190 $object->labels['menu_name'] = $object->labels['name']; 1191 1192 if ( !isset( $object->labels['all_items'] ) && isset( $object->labels['menu_name'] ) ) 1193 $object->labels['all_items'] = $object->labels['menu_name']; 1190 1194 1191 1195 foreach ( $nohier_vs_hier_defaults as $key => $value ) … … 1208 1212 if ( ! $ptype_obj->show_in_menu || $ptype_obj->show_in_menu === true ) 1209 1213 continue; 1210 add_submenu_page( $ptype_obj->show_in_menu, $ptype_obj->labels->name, $ptype_obj->labels-> menu_name, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype" );1214 add_submenu_page( $ptype_obj->show_in_menu, $ptype_obj->labels->name, $ptype_obj->labels->all_items, $ptype_obj->cap->edit_posts, "edit.php?post_type=$ptype" ); 1211 1215 } 1212 1216 }
Note: See TracChangeset
for help on using the changeset viewer.