mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Support page templates located in a subdirectory of the theme. fixes #11216.
git-svn-id: https://develop.svn.wordpress.org/trunk@20318 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
78d11eedea
commit
f73f48301c
@ -997,7 +997,7 @@ final class WP_Theme implements ArrayAccess {
|
||||
return $page_templates;
|
||||
$page_templates = array();
|
||||
|
||||
$files = (array) self::scandir( $this->get_stylesheet_directory(), 'php' );
|
||||
$files = (array) self::scandir( $this->get_stylesheet_directory(), 'php', 1 );
|
||||
|
||||
foreach ( $files['php'] as $file => $full_path ) {
|
||||
$headers = get_file_data( $full_path, array( 'Template Name' => 'Template Name' ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user