WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2020 10:36:38 AM (14 months ago)
Author:
johnbillion
Message:

Docs: Use more specific types in parameter descriptions in place of mixed.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme.php

    r47219 r47397  
    11651165     * @since 3.4.0
    11661166     *
    1167      * @param mixed $type Optional. Array of extensions to return. Defaults to all files (null).
    1168      * @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth). -1 depth is infinite.
    1169      * @param bool $search_parent Optional. Whether to return parent files. Defaults to false.
     1167     * @param string[]|string $type       Optional. Array of extensions to find, string of a single extension,
     1168     *                                    or null for all extensions. Default null.
     1169     * @param int          $depth         Optional. How deep to search for files. Defaults to a flat scan (0 depth).
     1170     *                                    -1 depth is infinite.
     1171     * @param bool         $search_parent Optional. Whether to return parent files. Default false.
    11701172     * @return string[] Array of files, keyed by the path to the file relative to the theme's directory, with the values
    11711173     *                  being absolute paths.
Note: See TracChangeset for help on using the changeset viewer.