WordPress.org

Make WordPress Core

Changeset 10568


Ignore:
Timestamp:
02/13/09 22:57:02 (5 years ago)
Author:
ryan
Message:

Add more places between menu groups in the top-level menu array. fixes #9047

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r10566 r10568  
    6262$_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group 
    6363 
    64 $menu[39] = array( '', 'read', '', '', 'wp-menu-separator' ); 
    65  
    66 $menu[40] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top', 'menu-appearance', 'div' ); 
     64$menu[59] = array( '', 'read', '', '', 'wp-menu-separator' ); 
     65 
     66$menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top', 'menu-appearance', 'div' ); 
    6767    $submenu['themes.php'][5]  = array(__('Themes'), 'switch_themes', 'themes.php'); 
    6868    $submenu['themes.php'][10] = array(__('Editor'), 'edit_themes', 'theme-editor.php'); 
     
    7474    $update_count = count( $update_plugins->response ); 
    7575 
    76 $menu[45] = array( sprintf( __('Plugins %s'), "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php', '', 'menu-top', 'menu-plugins', 'div' ); 
     76$menu[65] = array( sprintf( __('Plugins %s'), "<span class='update-plugins count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php', '', 'menu-top', 'menu-plugins', 'div' ); 
    7777    $submenu['plugins.php'][5]  = array( __('Installed'), 'activate_plugins', 'plugins.php' ); 
    7878    $submenu['plugins.php'][10] = array(_c('Add New|plugin'), 'install_plugins', 'plugin-install.php'); 
     
    8080 
    8181if ( current_user_can('edit_users') ) 
    82     $menu[50] = array( __('Users'), 'edit_users', 'users.php', '', 'menu-top', 'menu-users', 'div' ); 
     82    $menu[70] = array( __('Users'), 'edit_users', 'users.php', '', 'menu-top', 'menu-users', 'div' ); 
    8383else 
    84     $menu[50] = array( __('Profile'), 'read', 'profile.php', '', 'menu-top', 'menu-users', 'div' ); 
     84    $menu[70] = array( __('Profile'), 'read', 'profile.php', '', 'menu-top', 'menu-users', 'div' ); 
    8585 
    8686if ( current_user_can('edit_users') ) { 
     
    9494} 
    9595 
    96 $menu[55] = array( __('Tools'), 'read', 'tools.php', '', 'menu-top', 'menu-tools', 'div' ); 
     96$menu[75] = array( __('Tools'), 'read', 'tools.php', '', 'menu-top', 'menu-tools', 'div' ); 
    9797    $submenu['tools.php'][5] = array( __('Tools'), 'read', 'tools.php' ); 
    9898    $submenu['tools.php'][10] = array( __('Import'), 'import', 'import.php' ); 
     
    100100    $submenu['tools.php'][20] = array( __('Upgrade'), 'install_plugins',  'update-core.php'); 
    101101 
    102 $menu[60] = array( __('Settings'), 'manage_options', 'options-general.php', '', 'menu-top', 'menu-settings', 'div' ); 
     102$menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '', 'menu-top', 'menu-settings', 'div' ); 
    103103    $submenu['options-general.php'][10] = array(__('General'), 'manage_options', 'options-general.php'); 
    104104    $submenu['options-general.php'][15] = array(__('Writing'), 'manage_options', 'options-writing.php'); 
     
    110110    $submenu['options-general.php'][45] = array(__('Miscellaneous'), 'manage_options', 'options-misc.php'); 
    111111 
    112 $_wp_last_utility_menu = 60; // The index of the last top-level menu in the utility menu group 
    113  
    114 $menu[79] = array( '', 'read', '', '', 'wp-menu-separator-last' ); 
     112$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group 
     113 
     114$menu[99] = array( '', 'read', '', '', 'wp-menu-separator-last' ); 
    115115 
    116116// Back-compat for old top-levels 
Note: See TracChangeset for help on using the changeset viewer.