WordPress.org

Make WordPress Core

Ticket #20867: 20867.patch

File 20867.patch, 442 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/template.php

     
    6464        $templates = array(); 
    6565 
    6666        if ( $post_type ) 
    67                 $templates[] = "archive-{$post_type}.php"; 
     67                $templates[] = "archive-{$post_type[0]}.php"; 
    6868        $templates[] = 'archive.php'; 
    6969 
    7070        return get_query_template( 'archive', $templates );