Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (15 years ago)
Author:
markjaquith
Message:

_a(), _ea(), _xa(), attr() are now esc_attr(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650

File:
1 edited

Legend:

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

    r11109 r11204  
    4545<form name="editcat" id="editcat" method="post" action="categories.php" class="validate">
    4646<input type="hidden" name="action" value="editedcat" />
    47 <input type="hidden" name="cat_ID" value="<?php echo attr($category->term_id) ?>" />
     47<input type="hidden" name="cat_ID" value="<?php echo esc_attr($category->term_id) ?>" />
    4848<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-category_' . $cat_ID); ?>
    4949    <table class="form-table">
    5050        <tr class="form-field form-required">
    5151            <th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th>
    52             <td><input name="cat_name" id="cat_name" type="text" value="<?php echo attr($category->name); ?>" size="40" aria-required="true" /><br />
     52            <td><input name="cat_name" id="cat_name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /><br />
    5353            <?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></td>
    5454        </tr>
    5555        <tr class="form-field">
    5656            <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
    57             <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
     57            <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo esc_attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
    5858            <?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.'); ?></td>
    5959        </tr>
     
    7171        </tr>
    7272    </table>
    73 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php _ea('Update Category'); ?>" /></p>
     73<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Category'); ?>" /></p>
    7474<?php do_action('edit_category_form', $category); ?>
    7575</form>
Note: See TracChangeset for help on using the changeset viewer.