Ticket #7690: 7690.3.diff
| File 7690.3.diff, 2.2 KB (added by , 18 years ago) |
|---|
-
wp-admin/includes/file.php
480 480 unlink($temp_file); 481 481 } 482 482 483 if ( isset($args['connection_type']) && 'ssh' == $args['connection_type'] ) {483 if ( isset($args['connection_type']) && 'ssh' == $args['connection_type'] && extension_loaded('ssh') ) { 484 484 $method = 'SSH2'; 485 485 return apply_filters('filesystem_method', $method); 486 486 } … … 535 535 ?> 536 536 <form action="<?php echo $form_post ?>" method="post"> 537 537 <div class="wrap"> 538 <h2><?php _e(' FTPConnection Information') ?></h2>539 <p><?php _e('To perform the requested action, FTPconnection information is required.') ?></p>538 <h2><?php _e('Connection Information') ?></h2> 539 <p><?php _e('To perform the requested action, connection information is required.') ?></p> 540 540 <table class="form-table"> 541 541 <tr valign="top"> 542 542 <th scope="row"><label for="hostname"><?php _e('Hostname') ?></label></th> … … 556 556 <fieldset><legend class="hidden"><?php _e('Connection Type') ?> </legend> 557 557 <p><label><input name="connection_type" type="radio" value="ftp" <?php checked('ftp', $connection_type); ?> /> <?php _e('FTP') ?></label><br /> 558 558 <label><input name="connection_type" type="radio" value="ftps" <?php checked('ftps', $connection_type); ?> /> <?php _e('FTPS (SSL)') ?></label><br /> 559 <?php if ( extension_loaded('ssh') ) { ?> 559 560 <label><input name="connection_type" type="radio" value="ssh" <?php checked('ssh', $connection_type); ?> /> <?php _e('SSH') ?></label></p> 561 <?php } ?> 560 562 </fieldset> 561 563 </td> 562 564 </tr> -
wp-admin/update.php
27 27 return; 28 28 29 29 if ( ! WP_Filesystem($credentials) ) { 30 $error = true; 31 if ( is_object($wp_filesystem) && $wp_filesystem->errors->get_error_code() ) 32 $error = $wp_filesystem->errors; 33 request_filesystem_credentials($url, '', $error); //Failed to connect, Error and request again 30 request_filesystem_credentials($url, '', true); //Failed to connect, Error and request again 34 31 return; 35 32 } 36 33