A bug in /wp-admin/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)
hopefully this should be looked at and fixed in 2.5.2 or something, just so I don’t have to do it manually every time….
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘A bug in /wp-admin/menu.php’ is closed to new replies.