From 63f6b5312b6d6a7a3129e7de6fc67aee3c8dc840 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 2 Nov 2008 21:05:38 +0000 Subject: [PATCH] Fix drafts module git-svn-id: http://svn.automattic.com/wordpress/trunk@9476 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 4 ++-- wp-includes/general-template.php | 17 +++++++++++------ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 8721cd5d3..5568dab50 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -359,10 +359,10 @@ function wp_dashboard_recent_drafts( $drafts = false ) { if ( $drafts && is_array( $drafts ) ) { $list = array(); - foreach ( $drafts as $post ) { + foreach ( $drafts as $draft ) { $url = get_edit_post_link( $draft->ID ); $title = _draft_or_post_title( $draft->ID ); - $list[] = '' . get_the_time( get_option( 'date_format' ) ) . " $title"; + $list[] = '' . get_the_time( get_option( 'date_format' ), $draft ) . " $title"; } ?>