Changeset 9078

Show
Ignore:
Timestamp:
10/03/08 15:56:35 (2 months ago)
Author:
westi
Message:

Switch Press This to use _draft_or_post_title(). Fixes #7801 props Speedboxer.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/dashboard.php

    r9027 r9078  
    379379        foreach ( $drafts_query->posts as $draft ) { 
    380380            $url = get_edit_post_link( $draft->ID ); 
    381             $title = get_the_title( $draft->ID ); 
    382             if ( empty( $title ) ) 
    383                 $title = __('(no-title)'); 
     381            $title = _draft_or_post_title( $draft->ID ); 
    384382            $list[] = "<a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>"; 
    385383        }