From e07587fdc369848a7d252b05cffcae91a749784b Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@9078 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 f6ebbe67d..d22131b35 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"; } ?>