Instantiate errors object for ftpsockets class.

git-svn-id: https://develop.svn.wordpress.org/trunk@7033 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-26 05:23:05 +00:00
parent 59057e6250
commit 1bd930f056
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
class WP_Filesystem_ftpsockets{ class WP_Filesystem_ftpsockets{
var $ftp = false; var $ftp = false;
var $timeout = 5; var $timeout = 5;
var $errors = array(); var $errors;
var $options = array(); var $options = array();
var $wp_base = ''; var $wp_base = '';
@ -24,6 +24,8 @@ class WP_Filesystem_ftpsockets{
); );
function WP_Filesystem_ftpsockets($opt='') { function WP_Filesystem_ftpsockets($opt='') {
$this->errors = new WP_Error();
//Check if possible to use ftp functions. //Check if possible to use ftp functions.
if( ! @include_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) if( ! @include_once ABSPATH . 'wp-admin/includes/class-ftp.php' )
return false; return false;