From 528d8c4ed236b0a2b182e701b191729f712f3be8 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 27 Sep 2008 20:41:29 +0000 Subject: [PATCH] Punt inbox git-svn-id: http://svn.automattic.com/wordpress/trunk@9005 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/comment.php | 45 ------------------- wp-admin/includes/dashboard.php | 76 +-------------------------------- wp-admin/menu.php | 6 --- 3 files changed, 1 insertion(+), 126 deletions(-) diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php index 50053b328b..19a7f236eb 100644 --- a/wp-admin/includes/comment.php +++ b/wp-admin/includes/comment.php @@ -156,49 +156,4 @@ if ( is_admin() && ('edit-comments.php' == $pagenow || 'edit.php' == $pagenow) ) add_filter( 'comment_author', 'floated_admin_avatar' ); } -function wp_get_inbox_items() { - $r = array(); - $r[] = (object) array( - 'text' => 'Your take on the evolution of Dr. Who is ridiculous. The fact that the actors are getting younger has nothing to do with Gallifrey lore, and everything to do with celebrity culture.', - 'date' => '2008/09/07', - 'time' => '4:19pm', - 'from' => 'I. monroe', - 'type' => 'comment', - 'parent' => '1', - 'href' => '#' - ); - - $r[] = (object) array( - 'text' => 'Announcement: WordPress introduces new features for mobile blogging.', - 'date' => '2008/09/06', - 'time' => '3:24pm', - 'from' => 'WordPress.org', - 'type' => 'announcement', - 'parent' => '0', - 'href' => '#' - ); - - $r[] = (object) array( - 'text' => 'Great review. You left out a few things, but maybe you were trying to avoid spoilers? Will check back later in a week.', - 'date' => '2008/09/06', - 'time' => '2:46pm', - 'from' => 'matt', - 'type' => 'comment', - 'parent' => '2', - 'href' => '#' - ); - - $r[] = (object) array( - 'text' => 'nice picture!', - 'date' => '2008/08/05', - 'time' => '9:17am', - 'from' => 'caped crusader', - 'type' => 'comment', - 'parent' => '3', - 'href' => '#' - ); - - return $r; -} - ?> diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 301144a42c..a98b53a100 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -66,14 +66,6 @@ function wp_dashboard_setup() { array( 'widget_id' => 'dashboard_quick_press' ) ); - // Inbox Widget - wp_register_sidebar_widget( 'dashboard_inbox', __( 'Inbox' ), 'wp_dashboard_inbox', - array( 'all_link' => 'inbox.php', 'height' => 'double' ) - ); - wp_register_widget_control( 'dashboard_inbox', __( 'Inbox' ), 'wp_dashboard_empty_control', - array( 'widget_id' => 'dashboard_inbox' ) - ); - // Incoming Links Widget if ( !isset( $widget_options['dashboard_incoming_links'] ) || !isset( $widget_options['dashboard_incoming_links']['home'] ) || $widget_options['dashboard_incoming_links']['home'] != get_option('home') ) { $update = true; @@ -171,10 +163,9 @@ function wp_dashboard_setup() { // Hard code the sidebar's widgets and order $dashboard_widgets = array(); - $dashboard_widgets[] = 'dashboard_inbox'; $dashboard_widgets[] = 'dashboard_quick_press'; -/* $dashboard_widgets[] = 'dashboard_recent_comments'; +/* $dashboard_widgets[] = 'dashboard_incoming_links'; $dashboard_widgets[] = 'dashboard_primary'; if ( current_user_can( 'activate_plugins' ) ) @@ -448,71 +439,6 @@ jQuery( quickPressLoad ); - - - -
-

-
-
- - -
- -moderated; -$inbox_num = count( wp_get_inbox_items() ); -$awaiting_mod = wp_count_comments(); -$awaiting_mod = $awaiting_mod->moderated; - $top_menu = $top_submenu = $menu = $submenu = array(); $top_menu[5] = array( __('My Account'), 'read', 'profile.php' ); @@ -38,8 +34,6 @@ $top_menu[25] = array( __('Help'), 'read', 'index.php?help' ); // place holder $top_submenu['profile.php'][5] = array( __('Profile'), 'read', 'profile.php' ); $menu[0] = array( __('Dashboard'), 'read', 'index.php' ); - $submenu['index.php'][5] = array( __('Overview'), 'read', 'index.php' ); - $submenu['index.php'][10] = array( __('Inbox'), 'read', 'inbox.php' ); $menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', 'wp-menu-open' ); $submenu['edit.php'][5] = array( __('Write'), 'edit_posts', 'post-new.php' );