Changeset 47122 for trunk/src/wp-admin/menu.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r45932 r47122 61 61 $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); 62 62 63 // $menu[5] = Posts 63 // $menu[5] = Posts. 64 64 65 65 $menu[10] = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' ); … … 83 83 $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' ); 84 84 85 // $menu[20] = Pages 85 // $menu[20] = Pages. 86 86 87 87 // Avoid the comment count query for users who cannot edit_posts. … … 108 108 $submenu['edit-comments.php'][0] = array( __( 'All Comments' ), 'edit_posts', 'edit-comments.php' ); 109 109 110 $_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group 110 $_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group. 111 111 112 112 $types = (array) get_post_types( … … 140 140 141 141 $menu_class = 'menu-top menu-icon-' . $ptype_for_id; 142 // 'post' special case 142 // 'post' special case. 143 143 if ( 'post' === $ptype ) { 144 144 $menu_class .= ' open-if-no-js'; … … 220 220 */ 221 221 function _add_themes_utility_last() { 222 // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook 222 // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook. 223 223 add_submenu_page( 'themes.php', __( 'Theme Editor' ), __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' ); 224 224 } … … 298 298 $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_options', 'options-privacy.php' ); 299 299 300 $_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group 300 $_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group. 301 301 302 302 $menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator' ); 303 303 304 // Back-compat for old top-levels 304 // Back-compat for old top-levels. 305 305 $_wp_real_parent_file['post.php'] = 'edit.php'; 306 306 $_wp_real_parent_file['post-new.php'] = 'edit.php';
Note: See TracChangeset
for help on using the changeset viewer.