Make WordPress Core

Ticket #53599: 53599.patch

File 53599.patch, 650 bytes (added by opurockey, 2 years ago)

Added patch.

  • wp-includes/class-wp-theme.php

     
    11961196                $files = (array) self::scandir( $this->get_stylesheet_directory(), $type, $depth );
    11971197
    11981198                if ( $search_parent && $this->parent() ) {
    1199                         $files += (array) self::scandir( $this->get_template_directory(), $type, $depth );
     1199                        $parent_files = self::scandir( $this->get_template_directory(), $type, $depth );
     1200                        if ( ! empty( $parent_files ) ) {
     1201                                $files += (array) $parent_files;
     1202                        }
    12001203                }
    12011204
    12021205                return $files;