Avoid double encoding of attachment descriptions. Props dwc. fixes #9168 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@10700 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-03-04 19:37:33 +00:00
parent 13dc24e8e0
commit e6f9b2ae63
1 changed files with 1 additions and 1 deletions

View File

@ -1186,7 +1186,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'" . $aria_required . ">" . htmlspecialchars( $field['value'] ) . "</textarea>";
$item .= "<textarea type='text' id='$name' name='$name'" . $aria_required . ">" . wp_specialchars( $field['value'] ) . "</textarea>";
} else {
$item .= "<input type='text' id='$name' name='$name' value='" . attribute_escape( $field['value'] ) . "'" . $aria_required . "/>";
}