Changeset 34800
- Timestamp:
- 10/03/2015 02:59:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r33274 r34800 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() … … 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
Note: See TracChangeset
for help on using the changeset viewer.