WordPress.org

Make WordPress Core

Ticket #31872: wp-theme-scandir-docstring.31872.diff

File wp-theme-scandir-docstring.31872.diff, 1.5 KB (added by lamosty, 7 years ago)
  • src/wp-includes/class-wp-theme.php

    diff --git src/wp-includes/class-wp-theme.php src/wp-includes/class-wp-theme.php
    index 523c733..07e8102 100644
    final class WP_Theme implements ArrayAccess { 
    986986         * @since 3.4.0
    987987         * @access private
    988988         *
    989          * @param string $path Absolute path to search.
    990          * @param mixed  Array of extensions to find, string of a single extension, or null for all extensions.
    991          * @param int $depth How deep to search for files. Optional, defaults to a flat scan (0 depth). -1 depth is infinite.
     989         * @param string $path          Absolute path to search.
     990         * @param mixed  $extensions    Array of extensions to find, string of a single extension, or null for all extensions.
     991         * @param int    $depth        How deep to search for files. Optional, defaults to a flat scan (0 depth). -1 depth is infinite.
    992992         * @param string $relative_path The basename of the absolute path. Used to control the returned path
    993          *      for the found files, particularly when this function recurses to lower depths.
     993         *                                  for the found files, particularly when this function recurses to lower depths.
     994         * @return array Array of files, keyed by the path to the file relative to the $path directory prepended with $relative_path,
     995         *               with the values being absolute paths.
    994996         */
    995997        private static function scandir( $path, $extensions = null, $depth = 0, $relative_path = '' ) {
    996998                if ( ! is_dir( $path ) )