Changeset 13661 for trunk/wp-admin/includes/file.php
- Timestamp:
- 03/11/2010 05:12:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/file.php
r13577 r13661 915 915 <tr valign="top"> 916 916 <th scope="row"><label for="hostname"><?php _e('Hostname') ?></label></th> 917 <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>917 <td><input name="hostname" type="text" id="hostname" value="<?php echo esc_attr($hostname); if ( !empty($port) ) echo ":$port"; ?>"<?php disabled( defined('FTP_HOST') ); ?> size="40" /></td> 918 918 </tr> 919 919 920 920 <tr valign="top"> 921 921 <th scope="row"><label for="username"><?php _e('Username') ?></label></th> 922 <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>922 <td><input name="username" type="text" id="username" value="<?php echo esc_attr($username) ?>"<?php disabled( defined('FTP_USER') ); ?> size="40" /></td> 923 923 </tr> 924 924 925 925 <tr valign="top"> 926 926 <th scope="row"><label for="password"><?php _e('Password') ?></label></th> 927 <td><input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php if ( defined('FTP_PASS') ) echo ' disabled="disabled"'?> size="40" /></td>927 <td><input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php disabled( defined('FTP_PASS') ); ?> size="40" /></td> 928 928 </tr> 929 929 … … 935 935 <label for="private_key"><?php _e('Private Key:') ?></label> 936 936 </div></th> 937 <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" />937 <td><br /><input name="public_key" type="text" id="public_key" value="<?php echo esc_attr($public_key) ?>"<?php disabled( defined('FTP_PUBKEY') ); ?> size="40" /><br /><input name="private_key" type="text" id="private_key" value="<?php echo esc_attr($private_key) ?>"<?php disabled( defined('FTP_PRIKEY') ); ?> size="40" /> 938 938 <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> 939 939 </tr> … … 944 944 <td> 945 945 <fieldset><legend class="screen-reader-text"><span><?php _e('Connection Type') ?></span></legend> 946 <?php 947 948 $disabled = (defined('FTP_SSL') && FTP_SSL) || (defined('FTP_SSH') && FTP_SSH) ? ' disabled="disabled"' : ''; 949 950 foreach ( $types as $name => $text ) : ?> 946 <?php foreach ( $types as $name => $text ) : ?> 951 947 <label for="<?php echo esc_attr($name) ?>"> 952 <input type="radio" name="connection_type" id="<?php echo esc_attr($name) ?>" value="<?php echo esc_attr($name) ?>" <?php checked($name, $connection_type); echo $disabled; ?>/>948 <input type="radio" name="connection_type" id="<?php echo esc_attr($name) ?>" value="<?php echo esc_attr($name) ?>"<?php checked($name, $connection_type); disabled( $disabled, (defined('FTP_SSL') && FTP_SSL) || (defined('FTP_SSH') && FTP_SSH) ); ?> /> 953 949 <?php echo $text ?> 954 950 </label>
Note: See TracChangeset
for help on using the changeset viewer.