mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user