--- a/wp/wp-admin/includes/class-ftp.php Mon Jun 08 16:11:51 2015 +0000
+++ b/wp/wp-admin/includes/class-ftp.php Tue Jun 09 03:35:32 2015 +0200
@@ -504,7 +504,7 @@
return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "LIST", "rawlist");
}
- function nlist($pathname="") {
+ function nlist($pathname="", $arg="") {
return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist");
}
@@ -903,5 +903,4 @@
$mod_sockets = extension_loaded( 'sockets' );
}
-require_once "class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";
-?>
+require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";