]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/query.php
Wordpress 3.0.1
[autoinstalls/wordpress.git] / wp-includes / query.php
index cf3cc1e29b38bc447118e4983446227956831c39..3a8c1e9b60ba6c3be9fcece43168993c8b521bea 100644 (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 = $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;
                        $this->queried_object_id = (int) $this->queried_object->ID;
                } elseif ( $this->is_single && !is_null($this->post) ) {
                        $this->queried_object = $this->post;