Make WordPress Core


Ignore:
Timestamp:
04/28/2009 05:58:45 AM (16 years ago)
Author:
ryan
Message:

s/attribute_escape/attr/. see #9650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tag-form.php

    r10903 r11109  
    2222<input type="hidden" name="action" value="editedtag" />
    2323<input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" />
    24 <input type="hidden" name="taxonomy" value="<?php echo attribute_escape($taxonomy) ?>" />
     24<input type="hidden" name="taxonomy" value="<?php echo attr($taxonomy) ?>" />
    2525<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?>
    2626    <table class="form-table">
    2727        <tr class="form-field form-required">
    2828            <th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th>
    29             <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo attribute_escape($tag->name); ?>" size="40" aria-required="true" />
     29            <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo attr($tag->name); ?>" size="40" aria-required="true" />
    3030            <p><?php _e('The name is how the tag appears on your site.'); ?></p></td>
    3131        </tr>
    3232        <tr class="form-field">
    3333            <th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th>
    34             <td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
     34            <td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attr(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
    3535            <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
    3636        </tr>
Note: See TracChangeset for help on using the changeset viewer.