Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template.php

    r23271 r22634  
    6060 */
    6161function get_archive_template() {
    62     $post_types = array_filter( (array) get_query_var( 'post_type' ) );
    63 
    64     $templates = array();
    65 
    66     if ( count( $post_types ) == 1 ) {
    67         $post_type = reset( $post_types );
     62    $post_types = get_query_var( 'post_type' );
     63
     64    $templates = array();
     65
     66    foreach ( (array) $post_types as $post_type )
    6867        $templates[] = "archive-{$post_type}.php";
    69     }
    7068    $templates[] = 'archive.php';
    7169
Note: See TracChangeset for help on using the changeset viewer.