author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:52:52 +0200 | |
changeset 22 | 8c2e4d02f4ef |
parent 21 | 48c4eec2b7e6 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* Displays Administration Menu. |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
* @subpackage Administration |
|
7 |
*/ |
|
8 |
||
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
9 |
// Don't load directly. |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
10 |
if ( ! defined( 'ABSPATH' ) ) { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
11 |
die( '-1' ); |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
12 |
} |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
13 |
|
0 | 14 |
/** |
15 |
* The current page. |
|
16 |
* |
|
17 |
* @global string $self |
|
18 |
*/ |
|
9 | 19 |
$self = preg_replace( '|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF'] ); |
20 |
$self = preg_replace( '|^.*/wp-admin/|i', '', $self ); |
|
21 |
$self = preg_replace( '|^.*/plugins/|i', '', $self ); |
|
22 |
$self = preg_replace( '|^.*/mu-plugins/|i', '', $self ); |
|
0 | 23 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
24 |
/** |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
25 |
* For when admin-header is included from within a function. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
26 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
27 |
* @global array $menu |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
28 |
* @global array $submenu |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
29 |
* @global string $parent_file |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
30 |
* @global string $submenu_file |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
31 |
*/ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
32 |
global $menu, $submenu, $parent_file, $submenu_file; |
5 | 33 |
|
34 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
35 |
* Filters the parent file of an admin menu sub-menu item. |
5 | 36 |
* |
37 |
* Allows plugins to move sub-menu items around. |
|
38 |
* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
39 |
* @since MU (3.0.0) |
5 | 40 |
* |
41 |
* @param string $parent_file The parent file. |
|
42 |
*/ |
|
43 |
$parent_file = apply_filters( 'parent_file', $parent_file ); |
|
0 | 44 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
45 |
/** |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
46 |
* Filters the file of an admin menu sub-menu item. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
47 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
48 |
* @since 4.4.0 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
49 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
50 |
* @param string $submenu_file The submenu file. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
51 |
* @param string $parent_file The submenu item's parent file. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
52 |
*/ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
53 |
$submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
54 |
|
0 | 55 |
get_admin_page_parent(); |
56 |
||
57 |
/** |
|
58 |
* Display menu. |
|
59 |
* |
|
60 |
* @access private |
|
61 |
* @since 2.7.0 |
|
62 |
* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
63 |
* @global string $self |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
64 |
* @global string $parent_file |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
65 |
* @global string $submenu_file |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
66 |
* @global string $plugin_page |
19 | 67 |
* @global string $typenow The post type of the current screen. |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
68 |
* |
0 | 69 |
* @param array $menu |
70 |
* @param array $submenu |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
71 |
* @param bool $submenu_as_parent |
0 | 72 |
*/ |
73 |
function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { |
|
74 |
global $self, $parent_file, $submenu_file, $plugin_page, $typenow; |
|
75 |
||
76 |
$first = true; |
|
16 | 77 |
// 0 = menu_title, 1 = capability, 2 = menu_slug, 3 = page_title, 4 = classes, 5 = hookname, 6 = icon_url. |
0 | 78 |
foreach ( $menu as $key => $item ) { |
79 |
$admin_is_parent = false; |
|
9 | 80 |
$class = array(); |
0 | 81 |
$aria_attributes = ''; |
9 | 82 |
$aria_hidden = ''; |
83 |
$is_separator = false; |
|
0 | 84 |
|
85 |
if ( $first ) { |
|
86 |
$class[] = 'wp-first-item'; |
|
9 | 87 |
$first = false; |
0 | 88 |
} |
89 |
||
5 | 90 |
$submenu_items = array(); |
9 | 91 |
if ( ! empty( $submenu[ $item[2] ] ) ) { |
92 |
$class[] = 'wp-has-submenu'; |
|
93 |
$submenu_items = $submenu[ $item[2] ]; |
|
0 | 94 |
} |
95 |
||
16 | 96 |
if ( ( $parent_file && $item[2] === $parent_file ) || ( empty( $typenow ) && $self === $item[2] ) ) { |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
97 |
if ( ! empty( $submenu_items ) ) { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
98 |
$class[] = 'wp-has-current-submenu wp-menu-open'; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
99 |
} else { |
9 | 100 |
$class[] = 'current'; |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
101 |
$aria_attributes .= 'aria-current="page"'; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
102 |
} |
0 | 103 |
} else { |
104 |
$class[] = 'wp-not-current-submenu'; |
|
9 | 105 |
if ( ! empty( $submenu_items ) ) { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
106 |
$aria_attributes .= 'data-ariahaspopup'; |
9 | 107 |
} |
0 | 108 |
} |
109 |
||
9 | 110 |
if ( ! empty( $item[4] ) ) { |
5 | 111 |
$class[] = esc_attr( $item[4] ); |
9 | 112 |
} |
0 | 113 |
|
18 | 114 |
$class = $class ? ' class="' . implode( ' ', $class ) . '"' : ''; |
9 | 115 |
$id = ! empty( $item[5] ) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : ''; |
16 | 116 |
$img = ''; |
117 |
$img_style = ''; |
|
5 | 118 |
$img_class = ' dashicons-before'; |
119 |
||
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
120 |
if ( str_contains( $class, 'wp-menu-separator' ) ) { |
5 | 121 |
$is_separator = true; |
122 |
} |
|
123 |
||
124 |
/* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
125 |
* If the string 'none' (previously 'div') is passed instead of a URL, don't output |
5 | 126 |
* the default menu image so an icon can be added to div.wp-menu-image as background |
127 |
* with CSS. Dashicons and base64-encoded data:image/svg_xml URIs are also handled |
|
128 |
* as special cases. |
|
129 |
*/ |
|
130 |
if ( ! empty( $item[6] ) ) { |
|
19 | 131 |
$img = '<img src="' . esc_url( $item[6] ) . '" alt="" />'; |
5 | 132 |
|
133 |
if ( 'none' === $item[6] || 'div' === $item[6] ) { |
|
134 |
$img = '<br />'; |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
135 |
} elseif ( str_starts_with( $item[6], 'data:image/svg+xml;base64,' ) ) { |
19 | 136 |
$img = '<br />'; |
137 |
// The value is base64-encoded data, so esc_attr() is used here instead of esc_url(). |
|
5 | 138 |
$img_style = ' style="background-image:url(\'' . esc_attr( $item[6] ) . '\')"'; |
139 |
$img_class = ' svg'; |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
140 |
} elseif ( str_starts_with( $item[6], 'dashicons-' ) ) { |
9 | 141 |
$img = '<br />'; |
5 | 142 |
$img_class = ' dashicons-before ' . sanitize_html_class( $item[6] ); |
143 |
} |
|
144 |
} |
|
0 | 145 |
|
146 |
$title = wptexturize( $item[0] ); |
|
147 |
||
9 | 148 |
// Hide separators from screen readers. |
5 | 149 |
if ( $is_separator ) { |
150 |
$aria_hidden = ' aria-hidden="true"'; |
|
151 |
} |
|
0 | 152 |
|
5 | 153 |
echo "\n\t<li$class$id$aria_hidden>"; |
154 |
||
155 |
if ( $is_separator ) { |
|
0 | 156 |
echo '<div class="separator"></div>'; |
157 |
} elseif ( $submenu_as_parent && ! empty( $submenu_items ) ) { |
|
158 |
$submenu_items = array_values( $submenu_items ); // Re-index. |
|
9 | 159 |
$menu_hook = get_plugin_page_hook( $submenu_items[0][2], $item[2] ); |
160 |
$menu_file = $submenu_items[0][2]; |
|
16 | 161 |
$pos = strpos( $menu_file, '?' ); |
162 |
||
163 |
if ( false !== $pos ) { |
|
0 | 164 |
$menu_file = substr( $menu_file, 0, $pos ); |
9 | 165 |
} |
16 | 166 |
|
167 |
if ( ! empty( $menu_hook ) |
|
168 |
|| ( ( 'index.php' !== $submenu_items[0][2] ) |
|
169 |
&& file_exists( WP_PLUGIN_DIR . "/$menu_file" ) |
|
170 |
&& ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) |
|
171 |
) { |
|
0 | 172 |
$admin_is_parent = true; |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
173 |
echo "<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes><div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>$title</div></a>"; |
0 | 174 |
} else { |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
175 |
echo "\n\t<a href='{$submenu_items[0][2]}'$class $aria_attributes><div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>$title</div></a>"; |
0 | 176 |
} |
177 |
} elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { |
|
178 |
$menu_hook = get_plugin_page_hook( $item[2], 'admin.php' ); |
|
179 |
$menu_file = $item[2]; |
|
16 | 180 |
$pos = strpos( $menu_file, '?' ); |
181 |
||
182 |
if ( false !== $pos ) { |
|
0 | 183 |
$menu_file = substr( $menu_file, 0, $pos ); |
9 | 184 |
} |
16 | 185 |
|
186 |
if ( ! empty( $menu_hook ) |
|
187 |
|| ( ( 'index.php' !== $item[2] ) |
|
188 |
&& file_exists( WP_PLUGIN_DIR . "/$menu_file" ) |
|
189 |
&& ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) |
|
190 |
) { |
|
0 | 191 |
$admin_is_parent = true; |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
192 |
echo "\n\t<a href='admin.php?page={$item[2]}'$class $aria_attributes><div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>{$item[0]}</div></a>"; |
0 | 193 |
} else { |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
194 |
echo "\n\t<a href='{$item[2]}'$class $aria_attributes><div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>{$item[0]}</div></a>"; |
0 | 195 |
} |
196 |
} |
|
197 |
||
198 |
if ( ! empty( $submenu_items ) ) { |
|
199 |
echo "\n\t<ul class='wp-submenu wp-submenu-wrap'>"; |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
200 |
echo "<li class='wp-submenu-head' aria-hidden='true'>{$item[0]}</li>"; |
0 | 201 |
|
202 |
$first = true; |
|
5 | 203 |
|
16 | 204 |
// 0 = menu_title, 1 = capability, 2 = menu_slug, 3 = page_title, 4 = classes. |
0 | 205 |
foreach ( $submenu_items as $sub_key => $sub_item ) { |
9 | 206 |
if ( ! current_user_can( $sub_item[1] ) ) { |
0 | 207 |
continue; |
9 | 208 |
} |
0 | 209 |
|
9 | 210 |
$class = array(); |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
211 |
$aria_attributes = ''; |
16 | 212 |
|
0 | 213 |
if ( $first ) { |
214 |
$class[] = 'wp-first-item'; |
|
9 | 215 |
$first = false; |
0 | 216 |
} |
217 |
||
218 |
$menu_file = $item[2]; |
|
16 | 219 |
$pos = strpos( $menu_file, '?' ); |
0 | 220 |
|
16 | 221 |
if ( false !== $pos ) { |
0 | 222 |
$menu_file = substr( $menu_file, 0, $pos ); |
9 | 223 |
} |
0 | 224 |
|
225 |
// Handle current for post_type=post|page|foo pages, which won't match $self. |
|
226 |
$self_type = ! empty( $typenow ) ? $self . '?post_type=' . $typenow : 'nothing'; |
|
227 |
||
228 |
if ( isset( $submenu_file ) ) { |
|
16 | 229 |
if ( $submenu_file === $sub_item[2] ) { |
9 | 230 |
$class[] = 'current'; |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
231 |
$aria_attributes .= ' aria-current="page"'; |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
232 |
} |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
233 |
/* |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
234 |
* If plugin_page is set the parent must either match the current page or not physically exist. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
235 |
* This allows plugin pages with the same hook to exist under different parents. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
236 |
*/ |
5 | 237 |
} elseif ( |
16 | 238 |
( ! isset( $plugin_page ) && $self === $sub_item[2] ) |
239 |
|| ( isset( $plugin_page ) && $plugin_page === $sub_item[2] |
|
240 |
&& ( $item[2] === $self_type || $item[2] === $self || file_exists( $menu_file ) === false ) ) |
|
0 | 241 |
) { |
9 | 242 |
$class[] = 'current'; |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
243 |
$aria_attributes .= ' aria-current="page"'; |
0 | 244 |
} |
245 |
||
5 | 246 |
if ( ! empty( $sub_item[4] ) ) { |
247 |
$class[] = esc_attr( $sub_item[4] ); |
|
248 |
} |
|
249 |
||
18 | 250 |
$class = $class ? ' class="' . implode( ' ', $class ) . '"' : ''; |
0 | 251 |
|
9 | 252 |
$menu_hook = get_plugin_page_hook( $sub_item[2], $item[2] ); |
253 |
$sub_file = $sub_item[2]; |
|
16 | 254 |
$pos = strpos( $sub_file, '?' ); |
255 |
if ( false !== $pos ) { |
|
9 | 256 |
$sub_file = substr( $sub_file, 0, $pos ); |
257 |
} |
|
0 | 258 |
|
9 | 259 |
$title = wptexturize( $sub_item[0] ); |
0 | 260 |
|
16 | 261 |
if ( ! empty( $menu_hook ) |
262 |
|| ( ( 'index.php' !== $sub_item[2] ) |
|
263 |
&& file_exists( WP_PLUGIN_DIR . "/$sub_file" ) |
|
264 |
&& ! file_exists( ABSPATH . "/wp-admin/$sub_file" ) ) |
|
265 |
) { |
|
266 |
// If admin.php is the current page or if the parent exists as a file in the plugins or admin directory. |
|
9 | 267 |
if ( ( ! $admin_is_parent && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! is_dir( WP_PLUGIN_DIR . "/{$item[2]}" ) ) || file_exists( $menu_file ) ) { |
0 | 268 |
$sub_item_url = add_query_arg( array( 'page' => $sub_item[2] ), $item[2] ); |
9 | 269 |
} else { |
0 | 270 |
$sub_item_url = add_query_arg( array( 'page' => $sub_item[2] ), 'admin.php' ); |
9 | 271 |
} |
0 | 272 |
|
273 |
$sub_item_url = esc_url( $sub_item_url ); |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
274 |
echo "<li$class><a href='$sub_item_url'$class$aria_attributes>$title</a></li>"; |
0 | 275 |
} else { |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
276 |
echo "<li$class><a href='{$sub_item[2]}'$class$aria_attributes>$title</a></li>"; |
0 | 277 |
} |
278 |
} |
|
9 | 279 |
echo '</ul>'; |
0 | 280 |
} |
9 | 281 |
echo '</li>'; |
0 | 282 |
} |
283 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
284 |
echo '<li id="collapse-menu" class="hide-if-no-js">' . |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
285 |
'<button type="button" id="collapse-button" aria-label="' . esc_attr__( 'Collapse Main Menu' ) . '" aria-expanded="true">' . |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
286 |
'<span class="collapse-button-icon" aria-hidden="true"></span>' . |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
287 |
'<span class="collapse-button-label">' . __( 'Collapse Menu' ) . '</span>' . |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
288 |
'</button></li>'; |
0 | 289 |
} |
290 |
||
291 |
?> |
|
292 |
||
5 | 293 |
<div id="adminmenumain" role="navigation" aria-label="<?php esc_attr_e( 'Main menu' ); ?>"> |
294 |
<a href="#wpbody-content" class="screen-reader-shortcut"><?php _e( 'Skip to main content' ); ?></a> |
|
295 |
<a href="#wp-toolbar" class="screen-reader-shortcut"><?php _e( 'Skip to toolbar' ); ?></a> |
|
0 | 296 |
<div id="adminmenuback"></div> |
297 |
<div id="adminmenuwrap"> |
|
5 | 298 |
<ul id="adminmenu"> |
0 | 299 |
|
300 |
<?php |
|
301 |
||
302 |
_wp_menu_output( $menu, $submenu ); |
|
5 | 303 |
/** |
304 |
* Fires after the admin menu has been output. |
|
305 |
* |
|
306 |
* @since 2.5.0 |
|
307 |
*/ |
|
0 | 308 |
do_action( 'adminmenu' ); |
309 |
||
310 |
?> |
|
311 |
</ul> |
|
312 |
</div> |
|
5 | 313 |
</div> |