Changeset 32846
- Timestamp:
- 06/18/2015 07:00:09 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template-loader.php
r25991 r32846 54 54 elseif ( is_single() && $template = get_single_template() ) : 55 55 elseif ( is_page() && $template = get_page_template() ) : 56 elseif ( is_singular() && $template = get_singular_template() ) : 56 57 elseif ( is_category() && $template = get_category_template() ) : 57 58 elseif ( is_tag() && $template = get_tag_template() ) : -
trunk/src/wp-includes/template.php
r32804 r32846 384 384 385 385 /** 386 * Retrieve path of singular template in current or parent template. 387 * 388 * The template path is filterable via the 'singular_template' hook. 389 * 390 * @since 4.3.0 391 * 392 * @see get_query_template() 393 * 394 * @return string Full path to singular template file 395 */ 396 function get_singular_template() { 397 return get_query_template( 'singular' ); 398 } 399 400 /** 386 401 * Retrieve path of attachment template in current or parent template. 387 402 *
Note: See TracChangeset
for help on using the changeset viewer.