Changeset 4474
- Timestamp:
- 11/17/06 16:22:46 (2 years ago)
- Files:
-
- trunk/wp-admin/edit-comments.php (modified) (1 diff)
- trunk/wp-admin/menu.php (modified) (2 diffs)
- trunk/wp-admin/moderation.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/edit-comments.php
r4437 r4474 3 3 4 4 $title = __('Edit Comments'); 5 $parent_file = 'edit .php';5 $parent_file = 'edit-comments.php'; 6 6 wp_enqueue_script( 'admin-comments' ); 7 7 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'); trunk/wp-admin/moderation.php
r4437 r4474 3 3 4 4 $title = __('Moderate comments'); 5 $parent_file = 'edit .php';5 $parent_file = 'edit-comments.php'; 6 6 wp_enqueue_script( 'admin-comments' ); 7 7
