Remove type attribute from textarea. props solarissmoke.
git-svn-id: https://develop.svn.wordpress.org/trunk@17615 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e376455b17
commit
6aabec9e3c
@ -1350,7 +1350,7 @@ function get_media_item( $attachment_id, $args = null ) {
|
|||||||
if ( user_can_richedit() ) { // textarea_escaped when user_can_richedit() = false
|
if ( user_can_richedit() ) { // textarea_escaped when user_can_richedit() = false
|
||||||
$field['value'] = esc_textarea( $field['value'] );
|
$field['value'] = esc_textarea( $field['value'] );
|
||||||
}
|
}
|
||||||
$item .= "<textarea type='text' id='$name' name='$name' $aria_required>" . $field['value'] . '</textarea>';
|
$item .= "<textarea id='$name' name='$name' $aria_required>" . $field['value'] . '</textarea>';
|
||||||
} else {
|
} else {
|
||||||
$item .= "<input type='text' class='text' id='$name' name='$name' value='" . esc_attr( $field['value'] ) . "' $aria_required />";
|
$item .= "<input type='text' class='text' id='$name' name='$name' value='" . esc_attr( $field['value'] ) . "' $aria_required />";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user