WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/16/2010 05:48:20 PM (10 years ago)
Author:
ryan
Message:

Remove some unnecessary esc_textarea() calls. Props garyc40. see #15454

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r16969 r17001  
    289289    <div class="nojs-tags hide-if-js">
    290290    <p><?php echo $taxonomy->labels->add_or_remove_items; ?></p>
    291     <textarea name="<?php echo "tax_input[$tax_name]"; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $tax_name; ?>" <?php echo $disabled; ?>><?php echo esc_textarea( get_terms_to_edit( $post->ID, $tax_name ) ); ?></textarea></div>
     291    <textarea name="<?php echo "tax_input[$tax_name]"; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $tax_name; ?>" <?php echo $disabled; ?>><?php echo get_terms_to_edit( $post->ID, $tax_name ); // escaped by esc_attr() ?></textarea></div>
    292292    <?php if ( current_user_can($taxonomy->cap->assign_terms) ) : ?>
    293293    <div class="ajaxtag hide-if-no-js">
     
    893893    <tr class="form-field">
    894894        <th valign="top"  scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th>
    895         <td><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo esc_textarea( ( isset( $link->link_notes ) ? $link->link_notes : '') ); ?></textarea></td>
     895        <td><textarea name="link_notes" id="link_notes" cols="50" rows="10" style="width: 95%"><?php echo ( isset( $link->link_notes ) ? $link->link_notes : ''); // escaped ?></textarea></td>
    896896    </tr>
    897897    <tr class="form-field">
Note: See TracChangeset for help on using the changeset viewer.