Ticket #29700: template.php.patch
File template.php.patch, 607 bytes (added by , 9 years ago) |
---|
-
template.php
89 89 90 90 if ( count( $post_types ) == 1 ) { 91 91 $post_type = reset( $post_types ); 92 $templates[] = "{$post_type}/archive.php"; 92 93 $templates[] = "archive-{$post_type}.php"; 93 94 } 94 95 $templates[] = 'archive.php'; … … 376 377 $templates = array(); 377 378 378 379 if ( ! empty( $object->post_type ) ) 380 $templates[] = "{$object->post_type}/single.php"; 379 381 $templates[] = "single-{$object->post_type}.php"; 380 382 $templates[] = "single.php"; 381 383