Changeset 40031
- Timestamp:
- 01/30/2017 07:31:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r39884 r40031 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();
Note: See TracChangeset
for help on using the changeset viewer.