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/user-new.php

    r11110 r11204  
    9292    <tr class="form-field form-required">
    9393        <th scope="row"><label for="user_login"><?php _e('Username (required)') ?></label><input name="action" type="hidden" id="action" value="adduser" /></th>
    94         <td ><input name="user_login" type="text" id="user_login" value="<?php echo attr($new_user_login); ?>" aria-required="true" /></td>
     94        <td ><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr($new_user_login); ?>" aria-required="true" /></td>
    9595    </tr>
    9696    <tr class="form-field">
    9797        <th scope="row"><label for="first_name"><?php _e('First Name') ?> </label></th>
    98         <td><input name="first_name" type="text" id="first_name" value="<?php echo attr($new_user_firstname); ?>" /></td>
     98        <td><input name="first_name" type="text" id="first_name" value="<?php echo esc_attr($new_user_firstname); ?>" /></td>
    9999    </tr>
    100100    <tr class="form-field">
    101101        <th scope="row"><label for="last_name"><?php _e('Last Name') ?> </label></th>
    102         <td><input name="last_name" type="text" id="last_name" value="<?php echo attr($new_user_lastname); ?>" /></td>
     102        <td><input name="last_name" type="text" id="last_name" value="<?php echo esc_attr($new_user_lastname); ?>" /></td>
    103103    </tr>
    104104    <tr class="form-field form-required">
    105105        <th scope="row"><label for="email"><?php _e('E-mail (required)') ?></label></th>
    106         <td><input name="email" type="text" id="email" value="<?php echo attr($new_user_email); ?>" /></td>
     106        <td><input name="email" type="text" id="email" value="<?php echo esc_attr($new_user_email); ?>" /></td>
    107107    </tr>
    108108    <tr class="form-field">
    109109        <th scope="row"><label for="url"><?php _e('Website') ?></label></th>
    110         <td><input name="url" type="text" id="url" class="code" value="<?php echo attr($new_user_uri); ?>" /></td>
     110        <td><input name="url" type="text" id="url" class="code" value="<?php echo esc_attr($new_user_uri); ?>" /></td>
    111111    </tr>
    112112
     
    133133</table>
    134134<p class="submit">
    135     <input name="adduser" type="submit" id="addusersub" class="button-primary" value="<?php _ea('Add User') ?>" />
     135    <input name="adduser" type="submit" id="addusersub" class="button-primary" value="<?php esc_attr_e('Add User') ?>" />
    136136</p>
    137137</form>
Note: See TracChangeset for help on using the changeset viewer.