WordPress.org

Make WordPress Core

Changeset 10701


Ignore:
Timestamp:
03/04/2009 07:37:52 PM (9 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-admin/includes/media.php

    r10435 r10701  
    11681168            $item .= $field[$field['input']];
    11691169        elseif ( $field['input'] == 'textarea' ) {
    1170             $item .= "<textarea type='text' id='$name' name='$name'" . $aria_required . ">" . htmlspecialchars( $field['value'] ) . "</textarea>";
     1170            $item .= "<textarea type='text' id='$name' name='$name'" . $aria_required . ">" . wp_specialchars( $field['value'] ) . "</textarea>";
    11711171        } else {
    11721172            $item .= "<input type='text' id='$name' name='$name' value='" . attribute_escape( $field['value'] ) . "'" . $aria_required . "/>";
Note: See TracChangeset for help on using the changeset viewer.