Skip to content
Browse files

Apply [8853] to the 2.6 branch

git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@9077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 1e0a06e commit eb1eaa97b54822d6463f26dcbd637d3007956d40 markjaquith committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-admin/includes/media.php
View
2 wp-admin/includes/media.php
@@ -813,7 +813,7 @@ function get_media_item( $attachment_id, $args = null ) {
if ( !empty($field[$field['input']]) )
$item .= $field[$field['input']];
elseif ( $field['input'] == 'textarea' ) {
- $item .= "<textarea type='text' id='$name' name='$name'>" . attribute_escape( $field['value'] ) . $aria_required . "</textarea>";
+ $item .= "<textarea type='text' id='$name' name='$name'" . $aria_required . ">" . htmlspecialchars( $field['value'] ) . "</textarea>";
} else {
$item .= "<input type='text' id='$name' name='$name' value='" . attribute_escape( $field['value'] ) . "'" . $aria_required . "/>";
}

0 comments on commit eb1eaa9

Please sign in to comment.
Something went wrong with that request. Please try again.