wip
This commit is contained in:
@@ -17,7 +17,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||
|
||||
/**
|
||||
* @since 2.5.0
|
||||
* @var resource
|
||||
* @var FTP\Connection|resource|false
|
||||
*/
|
||||
public $link;
|
||||
|
||||
@@ -601,9 +601,11 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $line
|
||||
* @return array {
|
||||
* Array of file information.
|
||||
* Parses an individual entry from the FTP LIST command output.
|
||||
*
|
||||
* @param string $line A line from the directory listing.
|
||||
* @return array|string {
|
||||
* Array of file information. Empty string if the line could not be parsed.
|
||||
*
|
||||
* @type string $name Name of the file or directory.
|
||||
* @type string $perms *nix representation of permissions.
|
||||
@@ -658,7 +660,6 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||
$lucifer = preg_split( '/[ ]/', $line, 9, PREG_SPLIT_NO_EMPTY );
|
||||
|
||||
if ( $lucifer ) {
|
||||
// echo $line."\n";
|
||||
$lcount = count( $lucifer );
|
||||
|
||||
if ( $lcount < 8 ) {
|
||||
|
||||
Reference in New Issue
Block a user