A bit simpler.
git-svn-id: https://develop.svn.wordpress.org/trunk@5628 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
21ad1a92f8
commit
41e6999e05
|
@ -15,10 +15,7 @@ function wp_upload_display( $dims = false, $href = '' ) {
|
||||||
if ( isset($attachment_data['width']) )
|
if ( isset($attachment_data['width']) )
|
||||||
list($width,$height) = wp_shrink_dimensions($attachment_data['width'], $attachment_data['height'], 171, 128);
|
list($width,$height) = wp_shrink_dimensions($attachment_data['width'], $attachment_data['height'], 171, 128);
|
||||||
|
|
||||||
ob_start();
|
$post_title = attribute_escape( the_title( '', '', false ) );
|
||||||
the_title();
|
|
||||||
$post_title = attribute_escape(ob_get_contents());
|
|
||||||
ob_end_clean();
|
|
||||||
$post_content = attribute_escape(apply_filters( 'content_edit_pre', $post->post_content ));
|
$post_content = attribute_escape(apply_filters( 'content_edit_pre', $post->post_content ));
|
||||||
|
|
||||||
$class = 'text';
|
$class = 'text';
|
||||||
|
|
Loading…
Reference in New Issue