Changeset 7714 for trunk/wp-admin/menu.php
- Timestamp:
- 04/16/2008 11:45:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r7618 r7714 21 21 $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php'); 22 22 23 $awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'"); 23 $awaiting_mod = wp_count_comments(); 24 $awaiting_mod = $awaiting_mod->moderated; 24 25 $menu[15] = array(__('Design'), 'switch_themes', 'themes.php'); 25 26 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='comment-count'>$awaiting_mod</span></span>" ), 'edit_posts', 'edit-comments.php');
Note: See TracChangeset
for help on using the changeset viewer.