Make WordPress Core

Changeset 9078


Ignore:
Timestamp:
10/03/2008 03:56:35 PM (16 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        }
Note: See TracChangeset for help on using the changeset viewer.