mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
A bit simpler.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d9757a4426
commit
f7ba6b94d9
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user