WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-admin/menu.php

    r4694 r5400  
    77$menu[0] = array(__('Dashboard'), 'read', 'index.php');
    88
    9 if ( strstr($_SERVER['REQUEST_URI'], 'edit-pages.php') )
     9if (strpos($_SERVER['REQUEST_URI'], 'edit-pages.php') !== false)
    1010    $menu[5] = array(__('Write'), 'edit_pages', 'page-new.php');
    1111else
    1212    $menu[5] = array(__('Write'), 'edit_posts', 'post-new.php');
    13 if ( strstr($_SERVER['REQUEST_URI'], 'page-new.php') )
     13if (strpos($_SERVER['REQUEST_URI'], 'page-new.php') !== false)
    1414    $menu[10] = array(__('Manage'), 'edit_pages', 'edit-pages.php');
    1515else
    1616    $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php');
    17    
     17
    1818$menu[15] = array(__('Comments'), 'edit_posts', 'edit-comments.php');
    1919$menu[20] = array(__('Blogroll'), 'manage_links', 'link-manager.php');
     
    7070$submenu['themes.php'][10] = array(__('Theme Editor'), 'edit_themes', 'theme-editor.php');
    7171
     72do_action('_admin_menu');
     73
    7274// Create list of page plugin hook names.
    7375foreach ($menu as $menu_page) {
     
    105107        $_wp_real_parent_file[$old_parent] = $new_parent;
    106108        $menu[$id][2] = $new_parent;
    107        
     109
    108110        foreach ($submenu[$old_parent] as $index => $data) {
    109111            $submenu[$new_parent][$index] = $submenu[$old_parent][$index];
Note: See TracChangeset for help on using the changeset viewer.