From fe5cd0fa48765b052fd172e5243346270aae1bfb Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 22 Oct 2008 23:37:55 +0000 Subject: [PATCH] Show message when there are no drafts. Props jamierumbelow. fixes #7921 git-svn-id: http://svn.automattic.com/wordpress/trunk@9293 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 31cd2d3a52..4820b5ceae 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -346,7 +346,7 @@ function wp_dashboard_recent_drafts( $drafts = false ) { $drafts =& $drafts_query->posts; } - if ( $drafts && is_array( $drafts ) ) : + if ( $drafts && is_array( $drafts ) ) { $list = array(); foreach ( $drafts as $post ) { $url = get_edit_post_link( $draft->ID ); @@ -359,8 +359,9 @@ function wp_dashboard_recent_drafts( $drafts = false ) {