From cc2ad7b801b82054698c58f4ac21f548b9a18f0c Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 21 Nov 2008 17:59:15 +0000 Subject: [PATCH] Switch the ftpext filesystem to use Passive FTP aswell. Fixes #7940 props mcs_trekkie. git-svn-id: https://develop.svn.wordpress.org/trunk@9833 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-filesystem-ftpext.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index 4860d767d4..d8a774db09 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -79,7 +79,10 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { $this->errors->add('auth', sprintf(__('Username/Password incorrect for %s'), $this->options['username'])); return false; } - + + //Set the Connection to use Passive FTP + @ftp_pasv( $this->link, true ); + return true; }