Ticket #11152: 11152.diff
File 11152.diff, 1.9 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-filesystem-ftpext.php
82 82 83 83 //Set the Connection to use Passive FTP 84 84 @ftp_pasv( $this->link, true ); 85 if ( @ftp_get_option($this->link, FTP_TIMEOUT_SEC) < F TP_TIMEOUT )86 @ftp_set_option($this->link, FTP_TIMEOUT_SEC, F TP_TIMEOUT);85 if ( @ftp_get_option($this->link, FTP_TIMEOUT_SEC) < FS_TIMEOUT ) 86 @ftp_set_option($this->link, FTP_TIMEOUT_SEC, FS_TIMEOUT); 87 87 88 88 return true; 89 89 } -
wp-admin/includes/file.php
738 734 unset($credentials['port']); 739 735 } 740 736 741 if ( defined('FTP_SSH') || (defined('FS_METHOD') && 'ssh' == FS_METHOD) )737 if ( (defined('FTP_SSH') && FTP_SSH) || (defined('FS_METHOD') && 'ssh' == FS_METHOD) ) 742 738 $credentials['connection_type'] = 'ssh'; 743 else if ( defined('FTP_SSL') && 'ftpext' == $type ) //Only the FTP Extension understands SSL739 else if ( (defined('FTP_SSL') && FTP_SSL) && 'ftpext' == $type ) //Only the FTP Extension understands SSL 744 740 $credentials['connection_type'] = 'ftps'; 745 741 else if ( !empty($_POST['connection_type']) ) 746 742 $credentials['connection_type'] = stripslashes($_POST['connection_type']); … … 837 833 <fieldset><legend class="screen-reader-text"><span><?php _e('Connection Type') ?></span></legend> 838 834 <?php 839 835 840 $disabled = defined('FTP_SSL') || defined('FTP_SSH') ? '' : ' disabled="disabled"';836 $disabled = (defined('FTP_SSL') && FTP_SSL) || (defined('FTP_SSH') && FTP_SSH) ? ' disabled="disabled"' : ''; 841 837 842 838 foreach ( $types as $name => $text ) : ?> 843 839 <label for="<?php echo esc_attr($name) ?>">