Make WordPress Core

Ticket #18859: 18859.4.patch

File 18859.4.patch, 491 bytes (added by ericjuden, 11 years ago)

Updated for 3.5

  • wp-includes/template.php

     
    290290
    291291        $templates = array();
    292292
    293         if ( $object )
     293        if ( $object ){
     294                $templates[] = "single-{$object->post_type}-{$object->post_name}.php";
    294295                $templates[] = "single-{$object->post_type}.php";
     296        }
    295297        $templates[] = "single.php";
    296298
    297299        return get_query_template( 'single', $templates );