WordPress.org

Make WordPress Core

Ticket #6907: patch.diff

File patch.diff, 948 bytes (added by MattyRob, 6 years ago)
  • menu.php

     
    2323$awaiting_mod = wp_count_comments(); 
    2424$awaiting_mod = $awaiting_mod->moderated; 
    2525$menu[15] = array(__('Design'), 'switch_themes', 'themes.php'); 
    26 $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'); 
     26$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>" ), 'moderate_comments', 'edit-comments.php'); 
    2727$menu[30] = array(__('Settings'), 'manage_options', 'options-general.php'); 
    2828$menu[35] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); 
    2929if ( current_user_can('edit_users') )