Tab highlight fix from skeltoac. fixes #1619

git-svn-id: http://svn.automattic.com/wordpress/trunk@3164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-19 19:20:33 +00:00
parent 15147edb24
commit 8272052631
1 changed files with 3 additions and 2 deletions

View File

@ -22,8 +22,9 @@ if (isset($_POST['deletepost'])) {
$action = "delete";
}
// Fix submenu highlighting for pages.
if (false !== strpos($_SERVER['HTTP_REFERER'], 'edit-pages.php')) $submenu_file = 'page-new.php';
// Fix submenu highlighting for pages.
if ( isset($_REQUEST['post']) && 'static' == get_post_status($_REQUEST['post']) )
$submenu_file = 'page-new.php';
$editing = true;