Make WordPress Core

Changeset 10018


Ignore:
Timestamp:
12/03/2008 01:43:11 AM (17 years ago)
Author:
azaozz
Message:

Fix field labels in file.php, fixes #8456

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r9930 r10018  
    708708<h2><?php _e('Connection Information') ?></h2>
    709709<p><?php _e('To perform the requested action, connection information is required.') ?></p>
     710
    710711<table class="form-table">
    711712<tr valign="top">
     
    713714<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>
    714715</tr>
     716
    715717<tr valign="top">
    716718<th scope="row"><label for="username"><?php _e('Username') ?></label></th>
    717719<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>
    718720</tr>
     721
    719722<tr valign="top">
    720723<th scope="row"><label for="password"><?php _e('Password') ?></label></th>
    721724<td><input name="password" type="password" id="password" value=""<?php if( defined('FTP_PASS') ) echo ' disabled="disabled"' ?> size="40" /><?php if( defined('FTP_PASS') && !empty($password) ) echo '<em>'.__('(Password not shown)').'</em>'; ?></td>
    722725</tr>
     726
    723727<tr id="ssh_keys" valign="top" style="<?php if ( 'ssh' != $connection_type ) echo 'display:none' ?>">
    724 <th scope="row"><label id="keys" for="keys"><?php _e('Authentication Keys') ?></label></th>
    725 <td><label for="public_key"><?php _e('Public Key:') ?></label ><input name="public_key" type="text" id="public_key" value=""<?php if( defined('FTP_PUBKEY') ) echo ' disabled="disabled"' ?> size="40" /> <label for="private_key"><?php _e('Private Key:') ?></label> <input name="private_key" type="text" id="private_key" value=""<?php if( defined('FTP_PRIKEY') ) echo ' disabled="disabled"' ?> size="40" /><br/><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>
     728<th scope="row"><?php _e('Authentication Keys') ?>
     729<div class="key-labels textright">
     730<label for="public_key"><?php _e('Public Key:') ?></label ><br />
     731<label for="private_key"><?php _e('Private Key:') ?></label>
     732</div></th>
     733<td><br /><input name="public_key" type="text" id="public_key" value=""<?php if( defined('FTP_PUBKEY') ) echo ' disabled="disabled"' ?> size="40" /><br /><input name="private_key" type="text" id="private_key" value=""<?php if( defined('FTP_PRIKEY') ) echo ' disabled="disabled"' ?> size="40" />
     734<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>
    726735</tr>
     736
    727737<tr valign="top">
    728738<th scope="row"><?php _e('Connection Type') ?></th>
    729739<td>
    730 <fieldset><legend class="hidden"><?php _e('Connection Type') ?> </legend>
    731 <p><label><input id="ftp" name="connection_type"  type="radio" value="ftp" <?php checked('ftp', $connection_type); if ( defined('FTP_SSL') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('FTP') ?></label><br />
     740<fieldset><legend class="hidden"><?php _e('Connection Type') ?></legend>
     741<label><input id="ftp" name="connection_type"  type="radio" value="ftp" <?php checked('ftp', $connection_type); if ( defined('FTP_SSL') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('FTP') ?></label><br />
    732742<label><input id="ftps" name="connection_type" type="radio" value="ftps" <?php checked('ftps', $connection_type); if ( defined('FTP_SSH') || defined('FTP_SSH') ) echo ' disabled="disabled"';  ?>/> <?php _e('FTPS (SSL)') ?></label><br />
    733 <?php if ( extension_loaded('ssh2') ) { ?><label><input id="ssh" name="connection_type" type="radio" value="ssh" <?php checked('ssh', $connection_type);  if ( defined('FTP_SSL') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('SSH') ?></label><?php } ?></p>
     743<?php if ( extension_loaded('ssh2') ) { ?><label><input id="ssh" name="connection_type" type="radio" value="ssh" <?php checked('ssh', $connection_type);  if ( defined('FTP_SSL') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('SSH') ?></label><?php } ?>
    734744</fieldset>
    735745</td>
    736746</tr>
    737747</table>
     748
    738749<?php if ( isset( $_POST['version'] ) ) : ?>
    739750<input type="hidden" name="version" value="<?php echo attribute_escape($_POST['version']) ?>" />
  • trunk/wp-admin/wp-admin.css

    r10017 r10018  
    29252925    width: 36px;
    29262926}
     2927
     2928.key-labels label {
     2929    line-height: 24px;
     2930}
Note: See TracChangeset for help on using the changeset viewer.