Make WordPress Core


Ignore:
Timestamp:
05/05/2009 07:43:53 PM (16 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-link-category-form.php

    r11109 r11204  
    5858<div id="ajax-response"></div>
    5959<?php echo $form ?>
    60 <input type="hidden" name="action" value="<?php echo attr($action) ?>" />
    61 <input type="hidden" name="cat_ID" value="<?php echo attr($category->term_id) ?>" />
     60<input type="hidden" name="action" value="<?php echo esc_attr($action) ?>" />
     61<input type="hidden" name="cat_ID" value="<?php echo esc_attr($category->term_id) ?>" />
    6262<?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?>
    6363    <table class="form-table">
    6464        <tr class="form-field form-required">
    6565            <th scope="row" valign="top"><label for="name"><?php _e('Link Category name') ?></label></th>
    66             <td><input name="name" id="name" type="text" value="<?php echo attr($category->name); ?>" size="40" aria-required="true" /></td>
     66            <td><input name="name" id="name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /></td>
    6767        </tr>
    6868        <tr class="form-field">
    6969            <th scope="row" valign="top"><label for="slug"><?php _e('Link Category slug') ?></label></th>
    70             <td><input name="slug" id="slug" type="text" value="<?php echo attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
     70            <td><input name="slug" id="slug" type="text" value="<?php echo esc_attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
    7171            <?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>
    7272        </tr>
     
    7676        </tr>
    7777    </table>
    78 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo attr($submit_text) ?>" /></p>
     78<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo esc_attr($submit_text) ?>" /></p>
    7979<?php do_action('edit_link_category_form', $category); ?>
    8080</form>
Note: See TracChangeset for help on using the changeset viewer.