Changeset 25312 for trunk/src/wp-includes/query.php
- Timestamp:
- 09/10/2013 03:01:10 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r25311 r25312 3077 3077 } 3078 3078 } elseif ( $this->is_post_type_archive ) { 3079 $this->queried_object = get_post_type_object( $this->get('post_type') ); 3079 $post_type = $this->get( 'post_type' ); 3080 if ( is_array( $post_type ) ) 3081 $post_type = reset( $post_type ); 3082 $this->queried_object = get_post_type_object( $post_type ); 3080 3083 } elseif ( $this->is_posts_page ) { 3081 3084 $page_for_posts = get_option('page_for_posts'); … … 3153 3156 return (bool) $this->is_post_type_archive; 3154 3157 3155 $post_type_object = get_post_type_object( $this->get( 'post_type' ) ); 3158 $post_type = $this->get( 'post_type' ); 3159 if ( is_array( $post_type ) ) 3160 $post_type = reset( $post_type ); 3161 $post_type_object = get_post_type_object( $post_type ); 3156 3162 3157 3163 return in_array( $post_type_object->name, (array) $post_types );
Note: See TracChangeset
for help on using the changeset viewer.