Make WordPress Core


Ignore:
Timestamp:
01/04/2021 05:16:43 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false or WP_Error.

Follow-up to [46696], [47060], [49926], [49927].

See #51800.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r49927 r49929  
    131131 * @param int      $levels     Optional. Levels of folders to follow, Default 100 (PHP Loop limit).
    132132 * @param string[] $exclusions Optional. List of folders and files to skip.
    133  * @return false|string[] False on failure, else array of files.
     133 * @return string[]|false Array of files on success, false on failure.
    134134 */
    135135function list_files( $folder = '', $levels = 100, $exclusions = array() ) {
Note: See TracChangeset for help on using the changeset viewer.