Changeset 25291 for trunk/src/wp-includes/template.php
- Timestamp:
- 09/06/2013 10:06:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r23665 r25291 71 71 72 72 return get_query_template( 'archive', $templates ); 73 } 74 75 /** 76 * Retrieve path of post type archive template in current or parent template. 77 * 78 * @since 3.7.0 79 * 80 * @return string 81 */ 82 function get_post_type_archive_template() { 83 $obj = get_post_type_object( get_query_var( 'post_type' ) ); 84 if ( ! $obj->has_archive ) 85 return ''; 86 87 return get_archive_template(); 73 88 } 74 89
Note: See TracChangeset
for help on using the changeset viewer.