Skip to content

Commit e5ddb14

Browse files
committed
Lose top menu
git-svn-id: https://develop.svn.wordpress.org/trunk@9006 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 63ff25a commit e5ddb14

2 files changed

Lines changed: 1 addition & 21 deletions

File tree

wp-admin/menu-header.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,6 @@ function _wp_menu_output( &$menu, &$submenu, $submenu_as_parent = true ) {
103103

104104
?>
105105

106-
<ul id="dashmenu" class="wp-menu">
107-
<?php
108-
109-
_wp_menu_output( $top_menu, $top_submenu, false );
110-
do_action( 'dashmenu' );
111-
112-
?>
113-
</ul>
114-
115106
<ul id="adminmenu" class="wp-menu">
116107

117108
<?php

wp-admin/menu.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@
2222
$awaiting_mod = wp_count_comments();
2323
$awaiting_mod = $awaiting_mod->moderated;
2424

25-
$top_menu = $top_submenu = $menu = $submenu = array();
26-
27-
$top_menu[5] = array( __('My Account'), 'read', 'profile.php' );
28-
$top_menu[10] = array( __('My Dashboard'), 'read', 'index.php' );
29-
$top_menu[15] = array( __('New Post'), 'edit_posts', 'post-new.php', 'highlighted' );
30-
//$top_menu[20] = array( sprintf( __('Inbox (%s)'), "<span id='inbox-num' class='count-$inbox_num'><span class='inbox-count'>" . number_format_i18n($inbox_num) . "</span></span>" ), 'edit_posts', 'inbox.php' );
31-
$top_menu[20] = array( sprintf( __('Comments (%s)'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='comment-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php');
32-
$top_menu[25] = array( __('Help'), 'read', 'index.php?help' ); // place holder
33-
34-
$top_submenu['profile.php'][5] = array( __('Profile'), 'read', 'profile.php' );
35-
3625
$menu[0] = array( __('Dashboard'), 'read', 'index.php' );
3726

3827
$menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', 'wp-menu-open' );
@@ -99,7 +88,7 @@
9988
$_wp_submenu_nopriv = array();
10089
$_wp_menu_nopriv = array();
10190
// Loop over submenus and remove pages for which the user does not have privs.
102-
foreach ( array( 'top_submenu', 'submenu' ) as $sub_loop ) {
91+
foreach ( array( 'submenu' ) as $sub_loop ) {
10392
foreach ($$sub_loop as $parent => $sub) {
10493
foreach ($sub as $index => $data) {
10594
if ( ! current_user_can($data[1]) ) {

0 commit comments

Comments
 (0)