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

git-svn-id: https://develop.svn.wordpress.org/trunk@9041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2008-09-30 21:32:13 +00:00
parent cfbb4437e2
commit c6fae90a40
3 changed files with 22 additions and 18 deletions
+1 -1
View File
@@ -320,7 +320,7 @@ if ( $page_links )
if ( $orphans ) {
foreach ( $orphans as $post ) {
$class = 'alternate' == $class ? '' : 'alternate';
$att_title = empty($post->post_title) ? __('(no title)') : wp_specialchars( apply_filters('the_title', $post->post_title) );
$att_title = wp_specialchars( _draft_or_post_title($post->ID) );
?>
<tr id='post-<?php echo $post->ID; ?>' class='<?php echo $class; ?>' valign="top">
<th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php echo $post->ID; ?>" /></th>