Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r18192 r16526  
    471471        if ( !is_admin() && ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) {
    472472            // Don't 404 for these queries if they matched an object.
    473             if ( ( is_tag() || is_category() || is_tax() || is_author() || is_post_type_archive() ) && $wp_query->get_queried_object() && !is_paged() ) {
     473            if ( ( is_tag() || is_category() || is_tax() || is_author() ) && $wp_query->get_queried_object() && !is_paged() ) {
    474474                if ( !is_404() )
    475475                    status_header( 200 );
     
    505505    }
    506506
     507    /**
     508     * PHP4 Constructor - Does nothing.
     509     *
     510     * Call main() method when ready to run setup.
     511     *
     512     * @since 2.0.0
     513     *
     514     * @return WP
     515     */
     516    function WP() {
     517        // Empty.
     518    }
    507519}
    508520
Note: See TracChangeset for help on using the changeset viewer.