mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@15471 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2738,7 +2738,8 @@ class WP_Query {
|
||||
$this->queried_object = $term;
|
||||
$this->queried_object_id = $term->term_id;
|
||||
} elseif ( $this->is_posts_page ) {
|
||||
$this->queried_object = & get_page(get_option('page_for_posts'));
|
||||
$page_for_posts = get_option('page_for_posts');
|
||||
$this->queried_object = & get_page( $page_for_posts );
|
||||
$this->queried_object_id = (int) $this->queried_object->ID;
|
||||
} elseif ( $this->is_single && !is_null($this->post) ) {
|
||||
$this->queried_object = $this->post;
|
||||
|
||||
Reference in New Issue
Block a user