From bf84bcef9521ab0e5932ecaef22af9f34086e60c Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@9024 602fd350-edb4-49c9-b593-d223f7449a82 --- 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"; } ?>