Dashboard: Use `_draft_or_post_title()` to display `(no title)` if no post title is set. see #25824.

Built from https://develop.svn.wordpress.org/trunk@26337


git-svn-id: http://core.svn.wordpress.org/trunk@26238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2013-11-23 14:13:09 +00:00
parent 2597e857be
commit 06b4f99e18
1 changed files with 3 additions and 3 deletions

View File

@ -349,13 +349,13 @@ function wp_dashboard_quick_press( $error_msg = false ) {
if ( ! $drafts ) {
return;
}
echo '<div class="drafts">';
if ( count( $drafts ) > 3 ) {
echo '<p class="view-all"><a href="' . esc_url( admin_url( 'edit.php?post_status=draft' ) ) . '">' . _x( 'View all', 'drafts' ) . "</a></p>\n";
}
echo '<h4>' . __( 'Drafts' ) . "</h4>\n<ul>";
$drafts = array_slice( $drafts, 0, 3 );
foreach ( $drafts as $draft ) {
$url = get_edit_post_link( $draft->ID );
@ -550,7 +550,7 @@ function dashboard_show_published_posts( $args ) {
dashboard_relative_date( get_the_time( 'U' ) ),
get_the_time(),
get_edit_post_link(),
get_the_title()
_draft_or_post_title()
);
$i++;
}