Fix menu highlight for link category edit. Props duck_. fixes #15877

git-svn-id: https://develop.svn.wordpress.org/trunk@17041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-18 16:48:20 +00:00
parent ea94bfe385
commit 81a54e048f
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ $title = $tax->labels->name;
if ( 'post' != $post_type ) {
$parent_file = "edit.php?post_type=$post_type";
$submenu_file = "edit-tags.php?taxonomy=$taxonomy&post_type=$post_type";
} else if ( 'link_category' == $tax->name ) {
$parent_file = 'link-manager.php';
$submenu_file = 'edit-tags.php?taxonomy=link_category';
} else {
$parent_file = 'edit.php';
$submenu_file = "edit-tags.php?taxonomy=$taxonomy";