Make WordPress Core


Ignore:
Timestamp:
07/25/2010 07:35:59 AM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r15229 r15471  
    27392739            $this->queried_object_id = $term->term_id;
    27402740        } elseif ( $this->is_posts_page ) {
    2741             $this->queried_object = & get_page(get_option('page_for_posts'));
     2741            $page_for_posts = get_option('page_for_posts');
     2742            $this->queried_object = & get_page( $page_for_posts );
    27422743            $this->queried_object_id = (int) $this->queried_object->ID;
    27432744        } elseif ( $this->is_single && !is_null($this->post) ) {
Note: See TracChangeset for help on using the changeset viewer.