WordPress.org

Make WordPress Core

Ticket #6204: 6204.diff

File 6204.diff, 864 bytes (added by MtDewVirus, 6 years ago)
  • wp-admin/menu.php

     
    88 
    99if (strpos($_SERVER['REQUEST_URI'], 'edit-pages.php') !== false) 
    1010        $menu[5] = array(__('Write'), 'edit_pages', 'page-new.php'); 
     11elseif (strpos($_SERVER['REQUEST_URI'], 'link-manager.php') !== false) 
     12        $menu[5] = array(__('Write'), 'manage_links', 'link-add.php'); 
    1113else 
    1214        $menu[5] = array(__('Write'), 'edit_posts', 'post-new.php'); 
     15 
    1316if (strpos($_SERVER['REQUEST_URI'], 'page-new.php') !== false) 
    1417        $menu[10] = array(__('Manage'), 'edit_pages', 'edit-pages.php'); 
     18elseif (strpos($_SERVER['REQUEST_URI'], 'link-add.php') !== false) 
     19        $menu[10] = array(__('Manage'), 'manage_links', 'link-manager.php'); 
    1520else 
    1621        $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php'); 
    1722