Changeset 25312 for trunk/src/wp-includes/template.php
- Timestamp:
- 09/10/2013 03:01:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r25310 r25312 81 81 */ 82 82 function get_post_type_archive_template() { 83 $obj = get_post_type_object( get_query_var( 'post_type' ) ); 83 $post_type = get_query_var( 'post_type' ); 84 if ( is_array( $post_type ) ) 85 $post_type = reset( $post_type ); 86 87 $obj = get_post_type_object( $post_type ); 84 88 if ( ! $obj->has_archive ) 85 89 return '';
Note: See TracChangeset
for help on using the changeset viewer.