Make WordPress Core

Ticket #17511: 17511.diff

File 17511.diff, 799 bytes (added by kawauso, 14 years ago)

Add a condition for the network admin

  • menu.php

     
    114114$menu[25] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='pending-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php', '', 'menu-top menu-icon-comments', 'menu-comments', 'div' );
    115115unset($awaiting_mod);
    116116
    117 $submenu[ 'edit-comments.php' ][0] = array( __('All Comments'), 'edit_posts', 'edit-comments.php' );
    118 
    119117$_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group
    120118
    121119foreach ( (array) get_post_types( array('show_ui' => true, '_builtin' => false, 'show_in_menu' => true ) ) as $ptype ) {