Make WordPress Core


Ignore:
Timestamp:
09/06/2013 10:06:40 PM (11 years ago)
Author:
wonderboymusic
Message:

Ensure that the post type object is the queried object when a post type has been registered with has_archive => true. Ensure it is not stomped when decorated with tax_query. Adds unit tests.

Props nacin.
Fixes #18614.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/template-loader.php

    r22353 r25291  
    2727    if     ( is_404()            && $template = get_404_template()            ) :
    2828    elseif ( is_search()         && $template = get_search_template()         ) :
     29    elseif ( is_post_type_archive() && $template = get_post_type_archive_template() ) :
    2930    elseif ( is_tax()            && $template = get_taxonomy_template()       ) :
    3031    elseif ( is_front_page()     && $template = get_front_page_template()     ) :
Note: See TracChangeset for help on using the changeset viewer.