Switch Press This to use _draft_or_post_title(). Fixes #7801 props Speedboxer.

git-svn-id: https://develop.svn.wordpress.org/trunk@9078 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-10-03 15:56:35 +00:00
parent ede64bdbf9
commit a4a1083c06
1 changed files with 1 additions and 3 deletions

View File

@ -378,9 +378,7 @@ function wp_dashboard_quick_press( $sidebar_args ) {
$list = array();
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)');
$title = _draft_or_post_title( $draft->ID );
$list[] = "<a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>";
}
?>