Changeset 4474 for trunk/wp-admin/menu.php
- Timestamp:
- 11/17/2006 04:22:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r4289 r4474 15 15 else 16 16 $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php'); 17 17 18 $menu[15] = array(__('Comments'), 'edit_posts', 'edit-comments.php'); 18 19 $menu[20] = array(__('Blogroll'), 'manage_links', 'link-manager.php'); 19 20 $menu[25] = array(__('Presentation'), 'switch_themes', 'themes.php'); … … 29 30 $submenu['post-new.php'][10] = array(__('Write Page'), 'edit_pages', 'page-new.php'); 30 31 32 $submenu['edit-comments.php'][5] = array(__('Comments'), 'edit_posts', 'edit-comments.php'); 33 $awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'"); 34 $submenu['edit-comments.php'][25] = array(sprintf(__("Awaiting Moderation (%s)"), "<span id='awaitmod'>$awaiting_mod</span>"), 'edit_posts', 'moderation.php'); 35 36 31 37 $submenu['edit.php'][5] = array(__('Posts'), 'edit_posts', 'edit.php'); 32 38 $submenu['edit.php'][10] = array(__('Pages'), 'edit_pages', 'edit-pages.php'); 33 39 $submenu['edit.php'][12] = array(__('Uploads'), 'upload_files', 'upload.php'); 34 40 $submenu['edit.php'][15] = array(__('Categories'), 'manage_categories', 'categories.php'); 35 $submenu['edit.php'][20] = array(__('Comments'), 'edit_posts', 'edit-comments.php');36 $awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");37 $submenu['edit.php'][25] = array(sprintf(__("Awaiting Moderation (%s)"), "<span id='awaitmod'>$awaiting_mod</span>"), 'edit_posts', 'moderation.php');38 41 $submenu['edit.php'][30] = array(__('Files'), 'edit_files', 'templates.php'); 39 42 $submenu['edit.php'][35] = array(__('Import'), 'import', 'import.php');
Note: See TracChangeset
for help on using the changeset viewer.