From cbf1aed77d59dcc1dbfb009054370af013e283df Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@7831 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 407436b30..78361e30f 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); ?>