Fix menu highlight for link category edit. Props duck_. fixes #15877
git-svn-id: http://svn.automattic.com/wordpress/trunk@17041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a624eecb96
commit
0a2e59988d
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue