Make WordPress Core


Ignore:
Timestamp:
12/08/2010 08:57:38 AM (13 years ago)
Author:
scribu
Message:

Set queried object on CPT archives. Fixes #15730

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r16576 r16792  
    26762676                $this->queried_object_id = (int) $term->term_id;
    26772677            }
     2678        } elseif ( $this->is_post_type_archive ) {
     2679            $this->queried_object = get_post_type_object( $this->get('post_type') );
    26782680        } elseif ( $this->is_posts_page ) {
    26792681            $page_for_posts = get_option('page_for_posts');
Note: See TracChangeset for help on using the changeset viewer.