Changeset 12268
- Timestamp:
- 11/23/2009 09:52:13 PM (15 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-ftpext.php
r11934 r12268 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; -
trunk/wp-admin/includes/file.php
r12152 r12268 739 739 } 740 740 741 if ( defined('FTP_SSH') || (defined('FS_METHOD') && 'ssh' == FS_METHOD) )741 if ( (defined('FTP_SSH') && FTP_SSH) || (defined('FS_METHOD') && 'ssh' == FS_METHOD) ) 742 742 $credentials['connection_type'] = 'ssh'; 743 else if ( defined('FTP_SSL') && 'ftpext' == $type ) //Only the FTP Extension understands SSL743 else if ( (defined('FTP_SSL') && FTP_SSL) && 'ftpext' == $type ) //Only the FTP Extension understands SSL 744 744 $credentials['connection_type'] = 'ftps'; 745 745 else if ( !empty($_POST['connection_type']) ) … … 838 838 <?php 839 839 840 $disabled = defined('FTP_SSL') || defined('FTP_SSH') ? '' : ' disabled="disabled"';840 $disabled = (defined('FTP_SSL') && FTP_SSL) || (defined('FTP_SSH') && FTP_SSH) ? ' disabled="disabled"' : ''; 841 841 842 842 foreach ( $types as $name => $text ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.