query_posts returns invalid page data under specific circumstance
|Reported by:||layotte||Owned by:||ryan|
If you use query_post to query for a page that is being used as the "Post Page" it will return invalid results.
My test environment has these pages:
About => id.2
Contact => id.19 (set as Front Page)
Latest News => id.20 (set as Post Page)
Will give me the page info for "Store". If I use this:
It will give me the page info for "Store" and "Latest News" (it should give me results for "Latest News" and "About").
In wp-includes/classes.php lines 1444-1464, $this->is_page is set to false when the page is also the page_for_posts. I assume this is related to the problem, but it doesn't exactly explain why it would return a different page altogether.