diff --git src/wp-includes/template.php src/wp-includes/template.php
index 4205ce9..68db601 100644
|
|
|
function get_single_template() { |
| 498 | 498 | $templates[] = "single-{$object->post_type}.php"; |
| 499 | 499 | } |
| 500 | 500 | |
| | 501 | if( is_attachment() ) { |
| | 502 | $templates[] = "attachment.php"; |
| | 503 | } |
| | 504 | |
| 501 | 505 | $templates[] = "single.php"; |
| 502 | 506 | |
| 503 | 507 | return get_query_template( 'single', $templates ); |
| … |
… |
function get_attachment_template() { |
| 608 | 612 | } |
| 609 | 613 | $templates[] = "{$type}.php"; |
| 610 | 614 | } |
| 611 | | $templates[] = 'attachment.php'; |
| | 615 | |
| | 616 | if( ! is_single() ) { |
| | 617 | $templates[] = 'attachment.php'; |
| | 618 | } |
| 612 | 619 | |
| 613 | 620 | return get_query_template( 'attachment', $templates ); |
| 614 | 621 | } |