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/includes/file.php

    r11190 r11204  
    733733<tr valign="top">
    734734<th scope="row"><label for="hostname"><?php _e('Hostname') ?></label></th>
    735 <td><input name="hostname" type="text" id="hostname" value="<?php echo attr($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php if( defined('FTP_HOST') ) echo ' disabled="disabled"' ?> size="40" /></td>
     735<td><input name="hostname" type="text" id="hostname" value="<?php echo esc_attr($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php if( defined('FTP_HOST') ) echo ' disabled="disabled"' ?> size="40" /></td>
    736736</tr>
    737737
    738738<tr valign="top">
    739739<th scope="row"><label for="username"><?php _e('Username') ?></label></th>
    740 <td><input name="username" type="text" id="username" value="<?php echo attr($username) ?>"<?php if( defined('FTP_USER') ) echo ' disabled="disabled"' ?> size="40" /></td>
     740<td><input name="username" type="text" id="username" value="<?php echo esc_attr($username) ?>"<?php if( defined('FTP_USER') ) echo ' disabled="disabled"' ?> size="40" /></td>
    741741</tr>
    742742
     
    752752<label for="private_key"><?php _e('Private Key:') ?></label>
    753753</div></th>
    754 <td><br /><input name="public_key" type="text" id="public_key" value="<?php echo attr($public_key) ?>"<?php if( defined('FTP_PUBKEY') ) echo ' disabled="disabled"' ?> size="40" /><br /><input name="private_key" type="text" id="private_key" value="<?php echo attr($private_key) ?>"<?php if( defined('FTP_PRIKEY') ) echo ' disabled="disabled"' ?> size="40" />
     754<td><br /><input name="public_key" type="text" id="public_key" value="<?php echo esc_attr($public_key) ?>"<?php if( defined('FTP_PUBKEY') ) echo ' disabled="disabled"' ?> size="40" /><br /><input name="private_key" type="text" id="private_key" value="<?php echo esc_attr($private_key) ?>"<?php if( defined('FTP_PRIKEY') ) echo ' disabled="disabled"' ?> size="40" />
    755755<div><?php _e('Enter the location on the server where the keys are located. If a passphrase is needed, enter that in the password field above.') ?></div></td>
    756756</tr>
     
    769769
    770770<?php if ( isset( $_POST['version'] ) ) : ?>
    771 <input type="hidden" name="version" value="<?php echo attr($_POST['version']) ?>" />
     771<input type="hidden" name="version" value="<?php echo esc_attr($_POST['version']) ?>" />
    772772<?php endif; ?>
    773773<?php if ( isset( $_POST['locale'] ) ) : ?>
    774 <input type="hidden" name="locale" value="<?php echo attr($_POST['locale']) ?>" />
     774<input type="hidden" name="locale" value="<?php echo esc_attr($_POST['locale']) ?>" />
    775775<?php endif; ?>
    776776<p class="submit">
    777 <input id="upgrade" name="upgrade" type="submit" class="button" value="<?php _ea('Proceed'); ?>" />
     777<input id="upgrade" name="upgrade" type="submit" class="button" value="<?php esc_attr_e('Proceed'); ?>" />
    778778</p>
    779779</div>
Note: See TracChangeset for help on using the changeset viewer.