attribute_escape content before stuffing it in value attribute. Props Dan Coulter. fixes #3919
git-svn-id: https://develop.svn.wordpress.org/trunk@4986 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fa5169f8d3
commit
27229f0110
@ -18,7 +18,7 @@ function wp_upload_display( $dims = false, $href = '' ) {
|
||||
the_title();
|
||||
$post_title = attribute_escape(ob_get_contents());
|
||||
ob_end_clean();
|
||||
$post_content = apply_filters( 'content_edit_pre', $post->post_content );
|
||||
$post_content = attribute_escape(apply_filters( 'content_edit_pre', $post->post_content ));
|
||||
|
||||
$class = 'text';
|
||||
$innerHTML = get_attachment_innerHTML( $id, false, $dims );
|
||||
|
Loading…
Reference in New Issue
Block a user