A bit simpler.

git-svn-id: https://develop.svn.wordpress.org/trunk@5628 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-06-01 23:16:50 +00:00
parent 21ad1a92f8
commit 41e6999e05
1 changed files with 1 additions and 4 deletions

View File

@ -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';