diff --git wp-admin/menu-header.php wp-admin/menu-header.php
index dfa1ccb..6e58cf7 100644
|
|
get_admin_page_parent(); |
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 | $i = 0; |
| 40 | |
39 | 41 | $first = true; |
40 | 42 | // 0 = name, 1 = capability, 2 = file, 3 = class, 4 = id, 5 = icon src |
41 | 43 | foreach ( $menu as $key => $item ) { |
… |
… |
function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { |
53 | 55 | $class[] = 'wp-has-current-submenu wp-menu-open'; |
54 | 56 | else |
55 | 57 | $class[] = 'current'; |
| 58 | } elseif ( get_user_setting( "m{$i}" ) == 'o' ) { |
| 59 | $class[] = 'wp-menu-open'; |
56 | 60 | } |
57 | | |
| 61 | |
58 | 62 | if ( ! empty($item[4]) ) |
59 | 63 | $class[] = $item[4]; |
60 | 64 | |
… |
… |
function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { |
88 | 92 | } else { |
89 | 93 | echo "\n\t<div class='wp-menu-image'><a href='{$submenu[$item[2]][0][2]}'>$img</a></div>$toggle<a href='{$submenu[$item[2]][0][2]}'$class$tabindex>$title</a>"; |
90 | 94 | } |
| 95 | |
| 96 | $i++; |
91 | 97 | } else if ( current_user_can($item[1]) ) { |
92 | 98 | $menu_hook = get_plugin_page_hook($item[2], 'admin.php'); |
93 | 99 | $menu_file = $item[2]; |
… |
… |
function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { |
99 | 105 | } else { |
100 | 106 | echo "\n\t<div class='wp-menu-image'><a href='{$item[2]}'>$img</a></div>$toggle<a href='{$item[2]}'$class$tabindex>{$item[0]}</a>"; |
101 | 107 | } |
| 108 | $i++; |
102 | 109 | } |
103 | 110 | |
104 | 111 | if ( !empty($submenu[$item[2]]) ) { |