mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 00:52:55 +01:00
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:
parent
ede64bdbf9
commit
a4a1083c06
@ -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…
x
Reference in New Issue
Block a user