WordPress.org

Make WordPress Core

Ticket #17528: 17528.diff

File 17528.diff, 826 bytes (added by kawauso, 4 years ago)

Drop comment $sub_menu entry

  • wp-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 ) {