Changeset 35315 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 10/21/2015 03:50:19 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.