Make WordPress Core


Ignore:
Timestamp:
03/29/2012 05:39:26 AM (13 years ago)
Author:
nacin
Message:

Support page templates located in a subdirectory of the theme. fixes #11216.

File:
1 edited

Legend:

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

    r20317 r20318  
    998998        $page_templates = array();
    999999
    1000         $files = (array) self::scandir( $this->get_stylesheet_directory(), 'php' );
     1000        $files = (array) self::scandir( $this->get_stylesheet_directory(), 'php', 1 );
    10011001
    10021002        foreach ( $files['php'] as $file => $full_path ) {
Note: See TracChangeset for help on using the changeset viewer.