Ticket #38374: 38374.diff
File 38374.diff, 460 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/template.php
135 135 $post_type = reset( $post_type ); 136 136 137 137 $obj = get_post_type_object( $post_type ); 138 if ( ! $obj->has_archive )138 if ( ! ( $obj instanceof WP_Post_Type ) || ! $obj->has_archive ) { 139 139 return ''; 140 } 140 141 141 142 return get_archive_template(); 142 143 }