Make WordPress Core

Changeset 9024


Ignore:
Timestamp:
09/28/2008 08:43:08 PM (15 years ago)
Author:
westi
Message:

Give titleless drafts a title in the quickpress box. Fixes #7801 props Speedboxer.

File:
1 edited

Legend:

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

    r9005 r9024  
    380380            $url = get_edit_post_link( $draft->ID );
    381381            $title = get_the_title( $draft->ID );
     382            if ( empty( $title ) )
     383                $title = __('no-title');
    382384            $list[] = "<a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>";
    383385        }
Note: See TracChangeset for help on using the changeset viewer.