Changeset 35315
- Timestamp:
- 10/21/2015 03:50:19 AM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/forms.css
r34514 r35315 958 958 } 959 959 960 #request-filesystem-credentials-title { 961 font-size: 1.3em; 962 margin: 1em 0; 963 } 964 965 .request-filesystem-credentials-form legend { 966 font-size: 1em; 967 padding: 1.33em 0; 968 font-weight: 600; 969 } 970 960 971 .request-filesystem-credentials-form input[type="text"], 961 972 .request-filesystem-credentials-form input[type="password"] { -
trunk/src/wp-admin/includes/file.php
r35221 r35315 1002 1002 * @todo Properly mark optional arguments as such 1003 1003 * 1004 * @global string $pagenow 1005 * 1004 1006 * @param string $form_post the URL to post the form to 1005 1007 * @param string $type the chosen Filesystem method in use … … 1011 1013 */ 1012 1014 function request_filesystem_credentials($form_post, $type = '', $error = false, $context = false, $extra_fields = null, $allow_relaxed_file_ownership = false ) { 1015 global $pagenow; 1013 1016 1014 1017 /** … … 1142 1145 <form action="<?php echo esc_url( $form_post ) ?>" method="post"> 1143 1146 <div id="request-filesystem-credentials-form" class="request-filesystem-credentials-form"> 1144 <h3 id="request-filesystem-credentials-title"><?php _e( 'Connection Information' ) ?></h3> 1147 <?php 1148 // Print a H1 heading in the FTP credentials modal dialog, default is a H2. 1149 $heading_tag = 'h2'; 1150 if ( 'plugins.php' === $pagenow || 'plugin-install.php' === $pagenow ) { 1151 $heading_tag = 'h1'; 1152 } 1153 echo "<$heading_tag id='request-filesystem-credentials-title'>" . __( 'Connection Information' ) . "</$heading_tag>"; 1154 ?> 1145 1155 <p id="request-filesystem-credentials-desc"><?php 1146 1156 $label_user = __('Username'); … … 1180 1190 </div> 1181 1191 <?php if ( isset($types['ssh']) ) : ?> 1182 <h4><?php _e('Authentication Keys') ?></h4> 1192 <fieldset> 1193 <legend><?php _e( 'Authentication Keys' ); ?></legend> 1183 1194 <label for="public_key"> 1184 1195 <span class="field-title"><?php _e('Public Key:') ?></span> … … 1189 1200 <input name="private_key" type="text" id="private_key" value="<?php echo esc_attr($private_key) ?>"<?php disabled( defined('FTP_PRIKEY') ); ?> /> 1190 1201 </label> 1202 </fieldset> 1191 1203 <span id="auth-keys-desc"><?php _e('Enter the location on the server where the public and private keys are located. If a passphrase is needed, enter that in the password field above.') ?></span> 1192 1204 <?php endif; ?> 1193 < h4><?php _e('Connection Type') ?></h4>1194 < fieldset><legend class="screen-reader-text"><span><?php _e('Connection Type') ?></span></legend>1205 <fieldset> 1206 <legend><?php _e( 'Connection Type' ); ?></legend> 1195 1207 <?php 1196 1208 $disabled = disabled( (defined('FTP_SSL') && FTP_SSL) || (defined('FTP_SSH') && FTP_SSH), true, false );
Note: See TracChangeset
for help on using the changeset viewer.