Tab highlight fix from skeltoac. fixes #1619

git-svn-id: https://develop.svn.wordpress.org/trunk@3164 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-19 19:20:33 +00:00
parent a1ef8e762c
commit 8d5607f6f7
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;