WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

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

    r49845 r49927  
    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 bool|string[] False on failure, else array of files.
     133 * @return false|string[] False on failure, else array of files.
    134134 */
    135135function list_files( $folder = '', $levels = 100, $exclusions = array() ) {
     
    999999 * @see _wp_handle_upload()
    10001000 *
    1001  * @param array      $file      Reference to a single element of `$_FILES`.
    1002  *                              Call the function once for each uploaded file.
    1003  * @param array|bool $overrides Optional. An associative array of names => values
    1004  *                              to override default variables. Default false.
    1005  * @param string     $time      Optional. Time formatted in 'yyyy/mm'. Default null.
     1001 * @param array       $file      Reference to a single element of `$_FILES`.
     1002 *                               Call the function once for each uploaded file.
     1003 * @param array|false $overrides Optional. An associative array of names => values
     1004 *                               to override default variables. Default false.
     1005 * @param string      $time      Optional. Time formatted in 'yyyy/mm'. Default null.
    10061006 * @return array On success, returns an associative array of file attributes.
    10071007 *               On failure, returns `$overrides['upload_error_handler']( &$file, $message )`
     
    10301030 * @see _wp_handle_upload()
    10311031 *
    1032  * @param array      $file      Reference to a single element of `$_FILES`.
    1033  *                              Call the function once for each uploaded file.
    1034  * @param array|bool $overrides Optional. An associative array of names => values
    1035  *                              to override default variables. Default false.
    1036  * @param string     $time      Optional. Time formatted in 'yyyy/mm'. Default null.
     1032 * @param array       $file      Reference to a single element of `$_FILES`.
     1033 *                               Call the function once for each uploaded file.
     1034 * @param array|false $overrides Optional. An associative array of names => values
     1035 *                               to override default variables. Default false.
     1036 * @param string      $time      Optional. Time formatted in 'yyyy/mm'. Default null.
    10371037 * @return array On success, returns an associative array of file attributes.
    10381038 *               On failure, returns `$overrides['upload_error_handler']( &$file, $message )`
Note: See TracChangeset for help on using the changeset viewer.