Switch Press This to use _draft_or_post_title(). Fixes #7801 props Speedboxer.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f03180a5e1
commit
e07587fdc3
|
@ -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>";
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue