From d23f0c8082c2b56db873605ab058aef11c371986 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 25 Apr 2008 15:28:08 +0000 Subject: [PATCH] Allow editing of attachmentts with no titles. Props mdawaffe. fixes #6839 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@7831 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-attachment-rows.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php index 407436b309..78361e30fe 100644 --- a/wp-admin/edit-attachment-rows.php +++ b/wp-admin/edit-attachment-rows.php @@ -26,6 +26,10 @@ while (have_posts()) : the_post(); $class = 'alternate' == $class ? '' : 'alternate'; global $current_user; $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); +$att_title = get_the_title(); +if ( empty($att_title) ) + $att_title = __('(no title)'); + ?> post_status ); ?>' valign="top"> @@ -50,7 +54,7 @@ foreach($posts_columns as $column_name=>$column_display_name) { case 'media': ?> - ">
+ ">
ID))); ?> ID); ?>