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

    r11063 r11109  
    732732<tr valign="top">
    733733<th scope="row"><label for="hostname"><?php _e('Hostname') ?></label></th>
    734 <td><input name="hostname" type="text" id="hostname" value="<?php echo attribute_escape($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php if( defined('FTP_HOST') ) echo ' disabled="disabled"' ?> size="40" /></td>
     734<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>
    735735</tr>
    736736
    737737<tr valign="top">
    738738<th scope="row"><label for="username"><?php _e('Username') ?></label></th>
    739 <td><input name="username" type="text" id="username" value="<?php echo attribute_escape($username) ?>"<?php if( defined('FTP_USER') ) echo ' disabled="disabled"' ?> size="40" /></td>
     739<td><input name="username" type="text" id="username" value="<?php echo attr($username) ?>"<?php if( defined('FTP_USER') ) echo ' disabled="disabled"' ?> size="40" /></td>
    740740</tr>
    741741
     
    751751<label for="private_key"><?php _e('Private Key:') ?></label>
    752752</div></th>
    753 <td><br /><input name="public_key" type="text" id="public_key" value="<?php echo attribute_escape($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 attribute_escape($private_key) ?>"<?php if( defined('FTP_PRIKEY') ) echo ' disabled="disabled"' ?> size="40" />
     753<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" />
    754754<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>
    755755</tr>
     
    768768
    769769<?php if ( isset( $_POST['version'] ) ) : ?>
    770 <input type="hidden" name="version" value="<?php echo attribute_escape($_POST['version']) ?>" />
     770<input type="hidden" name="version" value="<?php echo attr($_POST['version']) ?>" />
    771771<?php endif; ?>
    772772<?php if ( isset( $_POST['locale'] ) ) : ?>
    773 <input type="hidden" name="locale" value="<?php echo attribute_escape($_POST['locale']) ?>" />
     773<input type="hidden" name="locale" value="<?php echo attr($_POST['locale']) ?>" />
    774774<?php endif; ?>
    775775<p class="submit">
Note: See TracChangeset for help on using the changeset viewer.