WordPress.org

Make WordPress Core

Ticket #8684: menu.diff

File menu.diff, 980 bytes (added by mrmist, 7 years ago)

menu.php patch against trunk - check for moderate comments cap

  • menu.php

     
    4848        $submenu['edit-pages.php'][5] = array( __('Edit'), 'edit_pages', 'edit-pages.php' ); 
    4949        $submenu['edit-pages.php'][10] = array( _c('Add New|page'), 'edit_pages', 'page-new.php' ); 
    5050 
    51 $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-comments', 'div' ); 
     51$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>" ), 'moderate_comments', 'edit-comments.php', '', 'menu-top', 'menu-comments', 'div' ); 
    5252 
    5353$_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group 
    5454