Ticket #18859: 18859.5.patch
| File 18859.5.patch, 759 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/template.php
380 380 * e.g. 'single_template'. 381 381 * 382 382 * @since 1.5.0 383 * @since 4.4.0 `single-{post_type}-{post_name}.php` was added to the top of the template hierarchy. 383 384 * 384 385 * @see get_query_template() 385 386 * … … 390 391 391 392 $templates = array(); 392 393 393 if ( ! empty( $object->post_type ) ) 394 if ( ! empty( $object->post_type ) ) { 395 $templates[] = "single-{$object->post_type}-{$object->post_name}.php"; 394 396 $templates[] = "single-{$object->post_type}.php"; 397 } 398 395 399 $templates[] = "single.php"; 396 400 397 401 return get_query_template( 'single', $templates );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)