Make WordPress Core

Changeset 26337


Ignore:
Timestamp:
11/23/2013 02:12:05 PM (10 years ago)
Author:
ocean90
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r26242 r26337  
    350350        return;
    351351    }
    352  
     352
    353353    echo '<div class="drafts">';
    354354    if ( count( $drafts ) > 3 ) {
     
    356356    }
    357357    echo '<h4>' . __( 'Drafts' ) . "</h4>\n<ul>";
    358  
     358
    359359    $drafts = array_slice( $drafts, 0, 3 );
    360360    foreach ( $drafts as $draft ) {
     
    551551                get_the_time(),
    552552                get_edit_post_link(),
    553                 get_the_title()
     553                _draft_or_post_title()
    554554            );
    555555            $i++;
Note: See TracChangeset for help on using the changeset viewer.