Ticket #19087: 19087.2.patch
File 19087.2.patch, 841 bytes (added by , 14 years ago) |
---|
-
wp-admin/menu-header.php
36 36 function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { 37 37 global $self, $parent_file, $submenu_file, $plugin_page, $pagenow, $typenow; 38 38 39 $menu_setting_increment = -1;40 $user_settings = get_all_user_settings();41 42 39 $first = true; 43 40 // 0 = name, 1 = capability, 2 = file, 3 = class, 4 = id, 5 = icon src 44 41 foreach ( $menu as $key => $item ) { … … 54 51 if ( ! empty( $submenu[$item[2]] ) ) { 55 52 $class[] = 'wp-has-submenu'; 56 53 $submenu_items = $submenu[$item[2]]; 57 $menu_setting_increment++;58 54 } 59 55 60 56 if ( ( $parent_file && $item[2] == $parent_file ) || ( empty($typenow) && $self == $item[2] ) )