From 3a0c8ef52cc3c5d709b2aa57579840845e89a592 Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 28 Sep 2008 20:43:08 +0000 Subject: [PATCH] Give titleless drafts a title in the quickpress box. Fixes #7801 props Speedboxer. git-svn-id: http://svn.automattic.com/wordpress/trunk@9024 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index a98b53a100..41c84b3887 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -379,6 +379,8 @@ function wp_dashboard_quick_press( $sidebar_args ) { 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'); $list[] = "$title"; } ?>