mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Skip main posts query if 404. Props misterbisson. fixes #5717
git-svn-id: http://svn.automattic.com/wordpress/trunk@6940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4bbe72cd41
commit
321845ffcd
@ -269,6 +269,10 @@ class WP {
|
||||
function query_posts() {
|
||||
global $wp_the_query;
|
||||
$this->build_query_string();
|
||||
if( $this->did_permalink && $this->query_vars['error'] == '404' ){
|
||||
$wp_the_query->parse_query($query);
|
||||
return;
|
||||
}
|
||||
$wp_the_query->query($this->query_vars);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user