Skip to content

Commit 5c519f8

Browse files
Docs: Improve documentation for WP_Filesystem_FTPext::parselisting().
Includes: * Adding a summary for the method. * Documenting the `$line` parameter. * Documenting the case when an empty string is returned. Follow-up to [7126], [30678], [55714]. Props opurockey, abcd95, SergeyBiryukov. Fixes #63491. git-svn-id: https://develop.svn.wordpress.org/trunk@60261 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6c67d79 commit 5c519f8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/wp-admin/includes/class-wp-filesystem-ftpext.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,11 @@ public function rmdir( $path, $recursive = false ) {
601601
}
602602

603603
/**
604-
* @param string $line
605-
* @return array {
606-
* Array of file information.
604+
* Parses an individual entry from the FTP LIST command output.
605+
*
606+
* @param string $line A line from the directory listing.
607+
* @return array|string {
608+
* Array of file information. Empty string if the line could not be parsed.
607609
*
608610
* @type string $name Name of the file or directory.
609611
* @type string $perms *nix representation of permissions.

0 commit comments

Comments
 (0)