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

git-svn-id: http://svn.automattic.com/wordpress/trunk@7276 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-13 23:51:32 +00:00
parent 04543417c9
commit 66e96b088c
1 changed files with 5 additions and 0 deletions

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');