mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
Avoid double encoding of attachment descriptions. Props dwc. fixes #9168 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
32ed8e4b8a
commit
12bd1a3053
@ -1186,7 +1186,7 @@ function get_media_item( $attachment_id, $args = null ) {
|
|||||||
if ( !empty($field[$field['input']]) )
|
if ( !empty($field[$field['input']]) )
|
||||||
$item .= $field[$field['input']];
|
$item .= $field[$field['input']];
|
||||||
elseif ( $field['input'] == 'textarea' ) {
|
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 {
|
} else {
|
||||||
$item .= "<input type='text' id='$name' name='$name' value='" . attribute_escape( $field['value'] ) . "'" . $aria_required . "/>";
|
$item .= "<input type='text' id='$name' name='$name' value='" . attribute_escape( $field['value'] ) . "'" . $aria_required . "/>";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user