Ticket #53599: 53599.patch
File 53599.patch, 650 bytes (added by , 2 years ago) |
---|
-
wp-includes/class-wp-theme.php
1196 1196 $files = (array) self::scandir( $this->get_stylesheet_directory(), $type, $depth ); 1197 1197 1198 1198 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 } 1200 1203 } 1201 1204 1202 1205 return $files;