Make WordPress Core


Ignore:
Timestamp:
02/20/2008 04:52:40 PM (17 years ago)
Author:
ryan
Message:

Skip main posts query if 404. Props misterbisson. fixes #5717

File:
1 edited

Legend:

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

    r6910 r6940  
    270270        global $wp_the_query;
    271271        $this->build_query_string();
     272        if( $this->did_permalink && $this->query_vars['error'] == '404' ){
     273            $wp_the_query->parse_query($query);
     274            return;
     275        }
    272276        $wp_the_query->query($this->query_vars);
    273277    }
Note: See TracChangeset for help on using the changeset viewer.