Changeset 25291 for trunk/src/wp-includes/query.php
- Timestamp:
- 09/06/2013 10:06:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r25289 r25291 3148 3148 */ 3149 3149 function is_post_type_archive( $post_types = '' ) { 3150 if ( empty( $post_types ) || ! $this->is_post_type_archive )3150 if ( empty( $post_types ) || ! $this->is_post_type_archive ) 3151 3151 return (bool) $this->is_post_type_archive; 3152 3152 3153 $post_type_object = $this->get_queried_object();3153 $post_type_object = get_post_type_object( $this->get( 'post_type' ) ); 3154 3154 3155 3155 return in_array( $post_type_object->name, (array) $post_types );
Note: See TracChangeset
for help on using the changeset viewer.