Ticket #19288: 19288.2.patch
File 19288.2.patch, 904 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/menu-header.php
76 76 $aria_attributes = ''; 77 77 $aria_hidden = ''; 78 78 $is_separator = false; 79 $screen = get_current_screen(); 79 80 80 81 if ( $first ) { 81 82 $class[] = 'wp-first-item'; … … 88 89 $submenu_items = $submenu[$item[2]]; 89 90 } 90 91 91 if ( ( $parent_file && $item[2] == $parent_file ) || ( empty($typenow) && $self == $item[2] ) ) {92 if ( ( $parent_file && $item[2] == $parent_file ) || ( empty($typenow) && $self == $item[2] ) || ( 'edit-tags' == $screen->base && false !== strpos($item[2], 'post_type=' . $screen->post_type) ) ) { 92 93 $class[] = ! empty( $submenu_items ) ? 'wp-has-current-submenu wp-menu-open' : 'current'; 93 94 } else { 94 95 $class[] = 'wp-not-current-submenu';