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

git-svn-id: https://develop.svn.wordpress.org/trunk@26337 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2013-11-23 14:12:05 +00:00
parent 13f6641cba
commit 6a5c878714
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++;
}