From 41e6999e05f41a0c891d8609bd5abe8b349daf0e Mon Sep 17 00:00:00 2001 From: rob1n Date: Fri, 1 Jun 2007 23:16:50 +0000 Subject: [PATCH] A bit simpler. git-svn-id: https://develop.svn.wordpress.org/trunk@5628 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/upload.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-admin/includes/upload.php b/wp-admin/includes/upload.php index 341a60ca2c..e40b013636 100644 --- a/wp-admin/includes/upload.php +++ b/wp-admin/includes/upload.php @@ -15,10 +15,7 @@ function wp_upload_display( $dims = false, $href = '' ) { if ( isset($attachment_data['width']) ) list($width,$height) = wp_shrink_dimensions($attachment_data['width'], $attachment_data['height'], 171, 128); - ob_start(); - the_title(); - $post_title = attribute_escape(ob_get_contents()); - ob_end_clean(); + $post_title = attribute_escape( the_title( '', '', false ) ); $post_content = attribute_escape(apply_filters( 'content_edit_pre', $post->post_content )); $class = 'text';