Make WordPress Core

Changeset 60261


Ignore:
Timestamp:
05/28/2025 10:47:56 AM (3 weeks ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php

    r60255 r60261  
    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.
Note: See TracChangeset for help on using the changeset viewer.
OSZAR »