Changeset 17358 for trunk/wp-includes/query.php
- Timestamp:
- 01/24/2011 09:15:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r17272 r17358 2967 2967 return (bool) $this->is_post_type_archive; 2968 2968 2969 if ( ! isset( $this->posts[0] ) ) 2970 return false; 2971 2972 $post = $this->posts[0]; 2973 2974 return in_array( $post->post_type, (array) $post_types ); 2969 $post_type_object = $this->get_queried_object(); 2970 2971 return in_array( $post_type_object->name, (array) $post_types ); 2975 2972 } 2976 2973
Note: See TracChangeset
for help on using the changeset viewer.