Changeset 21117
- Timestamp:
- 06/25/2012 09:07:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-theme.php
r21050 r21117 931 931 932 932 foreach ( $files as $file => $full_path ) { 933 $headers = get_file_data( $full_path, array( 'Template Name' => 'Template Name' ) ); 934 if ( empty( $headers['Template Name'] ) ) 933 if ( ! preg_match( '|Template Name:(.*)$|mi', file_get_contents( $full_path ), $header ) ) 935 934 continue; 936 $page_templates[ $file ] = $headers['Template Name'];935 $page_templates[ $file ] = _cleanup_header_comment( $header[1] ); 937 936 } 938 937
Note: See TracChangeset
for help on using the changeset viewer.