[wp-trac] [WordPress Trac] #6907: A bug in /wp-admin/menu.php

WordPress Trac wp-trac at lists.automattic.com
Sun May 4 00:44:36 GMT 2008


#6907: A bug in /wp-admin/menu.php
-----------------------+----------------------------------------------------
 Reporter:  CrazySerb  |       Owner:  anonymous
     Type:  defect     |      Status:  new      
 Priority:  high       |   Milestone:           
Component:  General    |     Version:  2.5.1    
 Severity:  normal     |    Keywords:  menu.php 
-----------------------+----------------------------------------------------
 There's an obvious (at least to me) bug in the menu.php file on line 26,
 and it should read:


 {{{
 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod'
 class='count-$awaiting_mod'><span class='comment-
 count'>$awaiting_mod</span></span>" ), 'moderate_comments', 'edit-
 comments.php');
 }}}


 (I just replaced the 'edit_posts' with 'moderate_comments' and it's
 working the way it should now, as in, those users who do not have
 moderate_comments role assigned to them cannot see the Comments link in
 the navigation menu)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6907>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list