Make WordPress Core


Ignore:
Timestamp:
09/30/2008 09:32:13 PM (17 years ago)
Author:
westi
Message:

Introduce _draft_or_post_title() instead of lots of duplicated (no title) code. Fixes #7801.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r9032 r9041  
    321321        foreach ( $orphans as $post ) {
    322322            $class = 'alternate' == $class ? '' : 'alternate';
    323             $att_title = empty($post->post_title) ? __('(no title)') : wp_specialchars( apply_filters('the_title', $post->post_title) );
     323            $att_title = wp_specialchars( _draft_or_post_title($post->ID) );
    324324?>
    325325    <tr id='post-<?php echo $post->ID; ?>' class='<?php echo $class; ?>' valign="top">
Note: See TracChangeset for help on using the changeset viewer.