Fix drafts module

git-svn-id: http://svn.automattic.com/wordpress/trunk@9476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-11-02 21:05:38 +00:00
parent 3368e6b8e5
commit 63f6b5312b
2 changed files with 13 additions and 8 deletions

View File

@@ -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[] = '<abbr title="' . get_the_time(__('Y/m/d g:i:s A')) . '">' . get_the_time( get_option( 'date_format' ) ) . "</abbr> <a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>";
$list[] = '<abbr title="' . get_the_time(__('Y/m/d g:i:s A'), $draft) . '">' . get_the_time( get_option( 'date_format' ), $draft ) . "</abbr> <a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>";
}
?>
<ul>