From 3821d10f89aa030b880f5fe6c8eff6c2669ed8eb Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 23 Nov 2009 21:52:13 +0000 Subject: [PATCH] Fix wpfs root dir location. Props dd32. fixes #11152 git-svn-id: https://develop.svn.wordpress.org/trunk@12268 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-filesystem-ftpext.php | 4 ++-- wp-admin/includes/file.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index eff98b5e6d..d5c9b08123 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -82,8 +82,8 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { //Set the Connection to use Passive FTP @ftp_pasv( $this->link, true ); - if ( @ftp_get_option($this->link, FTP_TIMEOUT_SEC) < FTP_TIMEOUT ) - @ftp_set_option($this->link, FTP_TIMEOUT_SEC, FTP_TIMEOUT); + if ( @ftp_get_option($this->link, FTP_TIMEOUT_SEC) < FS_TIMEOUT ) + @ftp_set_option($this->link, FTP_TIMEOUT_SEC, FS_TIMEOUT); return true; } diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 9199583406..fb8a4ee47d 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -738,9 +738,9 @@ function request_filesystem_credentials($form_post, $type = '', $error = false, unset($credentials['port']); } - if ( defined('FTP_SSH') || (defined('FS_METHOD') && 'ssh' == FS_METHOD) ) + if ( (defined('FTP_SSH') && FTP_SSH) || (defined('FS_METHOD') && 'ssh' == FS_METHOD) ) $credentials['connection_type'] = 'ssh'; - else if ( defined('FTP_SSL') && 'ftpext' == $type ) //Only the FTP Extension understands SSL + else if ( (defined('FTP_SSL') && FTP_SSL) && 'ftpext' == $type ) //Only the FTP Extension understands SSL $credentials['connection_type'] = 'ftps'; else if ( !empty($_POST['connection_type']) ) $credentials['connection_type'] = stripslashes($_POST['connection_type']); @@ -837,7 +837,7 @@ jQuery(function($){
$text ) : ?>