Ensure the Parent menu is hilighted correctly when Custom Post Types are shown under an existing top level menu. Fixes #16015 props duck_.
git-svn-id: https://develop.svn.wordpress.org/trunk@17169 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d554c850ac
commit
432bd4bdae
|
@ -162,7 +162,10 @@ case 'edit':
|
|||
$parent_file = "edit.php";
|
||||
$submenu_file = "edit.php";
|
||||
} else {
|
||||
$parent_file = "edit.php?post_type=$post_type";
|
||||
if ( isset( $post_type_object ) && $post_type_object->show_in_menu && $post_type_object->show_in_menu !== true )
|
||||
$parent_file = $post_type_object->show_in_menu;
|
||||
else
|
||||
$parent_file = "edit.php?post_type=$post_type";
|
||||
$submenu_file = "edit.php?post_type=$post_type";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue