Show Add Link page when visiting Write from Mange->Links. Props MtDewVirus. fixes #6204

git-svn-id: https://develop.svn.wordpress.org/trunk@7276 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-13 23:51:32 +00:00
parent e63fc7126a
commit c446cee03a

View File

@ -8,10 +8,15 @@ $menu[0] = array(__('Dashboard'), 'read', 'index.php');
if (strpos($_SERVER['REQUEST_URI'], 'edit-pages.php') !== false)
$menu[5] = array(__('Write'), 'edit_pages', 'page-new.php');
elseif (strpos($_SERVER['REQUEST_URI'], 'link-manager.php') !== false)
$menu[5] = array(__('Write'), 'manage_links', 'link-add.php');
else
$menu[5] = array(__('Write'), 'edit_posts', 'post-new.php');
if (strpos($_SERVER['REQUEST_URI'], 'page-new.php') !== false)
$menu[10] = array(__('Manage'), 'edit_pages', 'edit-pages.php');
elseif (strpos($_SERVER['REQUEST_URI'], 'link-add.php') !== false)
$menu[10] = array(__('Manage'), 'manage_links', 'link-manager.php');
else
$menu[10] = array(__('Manage'), 'edit_posts', 'edit.php');