Changeset 21861
- Timestamp:
- 09/15/2012 08:07:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template.php
r20872 r21861 60 60 */ 61 61 function get_archive_template() { 62 $post_type = get_query_var( 'post_type' );63 64 $templates = array(); 65 66 if ($post_type )62 $post_types = get_query_var( 'post_type' ); 63 64 $templates = array(); 65 66 foreach ( (array) $post_types as $post_type ) 67 67 $templates[] = "archive-{$post_type}.php"; 68 68 $templates[] = 'archive.php';
Note: See TracChangeset
for help on using the changeset viewer.