Ticket #41564: 41564.diff
File 41564.diff, 594 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/template.php
114 114 if ( count( $post_types ) == 1 ) { 115 115 $post_type = reset( $post_types ); 116 116 $templates[] = "archive-{$post_type}.php"; 117 118 // Prepend the hyphenated post type name as a higher priority template. 119 if ( strpos( $post_type, '_' ) ) { 120 array_unshift( $templates, 'archive-' . str_replace( '_', '-', $post_type ) . '.php' ); 121 } 117 122 } 118 123 $templates[] = 'archive.php'; 119 124