From a4a1083c0621e052331b3a89bb6926f2ddfe79fc Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 3 Oct 2008 15:56:35 +0000 Subject: [PATCH] Switch Press This to use _draft_or_post_title(). Fixes #7801 props Speedboxer. git-svn-id: https://develop.svn.wordpress.org/trunk@9078 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index f6ebbe67d3..d22131b35a 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -378,9 +378,7 @@ function wp_dashboard_quick_press( $sidebar_args ) { $list = array(); foreach ( $drafts_query->posts as $draft ) { $url = get_edit_post_link( $draft->ID ); - $title = get_the_title( $draft->ID ); - if ( empty( $title ) ) - $title = __('(no-title)'); + $title = _draft_or_post_title( $draft->ID ); $list[] = "$title"; } ?>