From c5c662c4b8a7276eca50458db716a1efede10088 Mon Sep 17 00:00:00 2001 From: azaozz Date: Thu, 27 Nov 2008 05:20:05 +0000 Subject: [PATCH] Change View All/Edit links on dashboard widgets, fixes #8365 git-svn-id: http://svn.automattic.com/wordpress/trunk@9916 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/dashboard.css | 4 ++++ wp-admin/includes/dashboard.php | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/wp-admin/css/dashboard.css b/wp-admin/css/dashboard.css index 7098b4bf83..ea11a4e649 100644 --- a/wp-admin/css/dashboard.css +++ b/wp-admin/css/dashboard.css @@ -77,6 +77,10 @@ div.postbox div.inside { #dashboard-widgets h3 a { text-decoration: underline; + float: right; + position: relative; + right: 5px; + top: -12px; } #dashboard-widgets h4 { diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 74f8c5913a..489da9f0c5 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -29,8 +29,6 @@ function wp_dashboard_setup() { // Recent Comments Widget $recent_comments_title = __( 'Recent Comments' ); - if ( current_user_can('edit_posts') ) - $recent_comments_title .= ' ' . __('View all') . ''; wp_add_dashboard_widget( 'dashboard_recent_comments', $recent_comments_title, 'wp_dashboard_recent_comments' ); // Incoming Links Widget @@ -56,7 +54,7 @@ function wp_dashboard_setup() { // Recent Drafts if ( current_user_can('edit_posts') ) - wp_add_dashboard_widget( 'dashboard_recent_drafts', __( 'Recent Drafts') . ' ' . __('View all') . '', 'wp_dashboard_recent_drafts' ); + wp_add_dashboard_widget( 'dashboard_recent_drafts', __('Recent Drafts'), 'wp_dashboard_recent_drafts' ); // Primary feed (Dev Blog) Widget if ( !isset( $widget_options['dashboard_primary'] ) ) { @@ -122,7 +120,7 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_ return; } list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 ); - $widget_name .= ' ' . __( 'Edit' ) . ''; + $widget_name .= ' ' . __( 'Configure' ) . ''; } $side_widgets = array('dashboard_quick_press', 'dashboard_recent_drafts', 'dashboard_primary', 'dashboard_secondary'); $location = 'normal'; @@ -385,7 +383,7 @@ function wp_dashboard_recent_drafts( $drafts = false ) { - +

+

+