Make WordPress Core

Ticket #29700: template.php.patch

File template.php.patch, 607 bytes (added by cyberwani, 9 years ago)
  • template.php

     
    8989
    9090        if ( count( $post_types ) == 1 ) {
    9191                $post_type = reset( $post_types );
     92                $templates[] = "{$post_type}/archive.php";
    9293                $templates[] = "archive-{$post_type}.php";
    9394        }
    9495        $templates[] = 'archive.php';
     
    376377        $templates = array();
    377378
    378379        if ( ! empty( $object->post_type ) )
     380                $templates[] = "{$object->post_type}/single.php";
    379381                $templates[] = "single-{$object->post_type}.php";
    380382        $templates[] = "single.php";
    381383