More curses on PHP 5.0.5. see #13757, fixes #14160. for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@15471 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-07-25 07:35:59 +00:00
parent 2ea4fcd6d9
commit 85394e795e
6 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -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;