mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Fix sub menu highlighting for post type pages. see #13662
git-svn-id: https://develop.svn.wordpress.org/trunk@19048 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7121150930
commit
62778137cf
@ -126,8 +126,9 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
|
||||
// Handle current for post_type=post|page|foo pages, which won't match $self.
|
||||
$self_type = ! empty( $typenow ) ? $self . '?post_type=' . $typenow : 'nothing';
|
||||
|
||||
if ( isset( $submenu_file ) && $submenu_file == $sub_item[2] ) {
|
||||
$class[] = 'current';
|
||||
if ( isset( $submenu_file ) ) {
|
||||
if ( $submenu_file == $sub_item[2] )
|
||||
$class[] = 'current';
|
||||
// If plugin_page is set the parent must either match the current page or not physically exist.
|
||||
// This allows plugin pages with the same hook to exist under different parents.
|
||||
} else if (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user