Changeset 6638 for trunk/wp-admin/menu.php
- Timestamp:
- 01/21/2008 10:13:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r6558 r6638 17 17 18 18 $awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'"); 19 if ( 100 < $awaiting_mod )20 $awaiting_mod = '99+'; // to not blow out layout21 19 $menu[15] = array(__('Design'), 'switch_themes', 'themes.php'); 22 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='comment-count'> $awaiting_mod</span>" ), 'edit_posts', 'edit-comments.php');20 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='comment-count'><span>$awaiting_mod</span></span>" ), 'edit_posts', 'edit-comments.php'); 23 21 $menu[30] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); 24 22 if ( current_user_can('edit_users') )
Note: See TracChangeset
for help on using the changeset viewer.