diff --git src/wp-includes/class-wp-theme.php src/wp-includes/class-wp-theme.php
index 8b3661a..0053fe9 100644
|
|
|
final class WP_Theme implements ArrayAccess {
|
| 1033 | 1033 | } |
| 1034 | 1034 | |
| 1035 | 1035 | $types = array( 'page' ); |
| 1036 | | if ( preg_match( '|Template Post Type:(.*)$|mi', file_get_contents( $full_path ), $type ) ) { |
| | 1036 | if ( preg_match( '|Template Post Type:(.*)\.?\s*$|miU', file_get_contents( $full_path ), $type ) ) { |
| 1037 | 1037 | $types = explode( ',', _cleanup_header_comment( $type[1] ) ); |
| 1038 | 1038 | } |
| 1039 | 1039 | |