WordPress.org

Make WordPress Core

Changeset 20491


Ignore:
Timestamp:
04/17/12 03:41:07 (2 years ago)
Author:
nacin
Message:

No need for by-reference when calculating the queried object in PHP5. props SergeyBiryukov, duck_, fixes #20039.

File:
1 edited

Legend:

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

    r20325 r20491  
    16251625 
    16261626        if ( '' != $qv['pagename'] ) { 
    1627             $this->queried_object =& get_page_by_path($qv['pagename']); 
     1627            $this->queried_object = get_page_by_path($qv['pagename']); 
    16281628            if ( !empty($this->queried_object) ) 
    16291629                $this->queried_object_id = (int) $this->queried_object->ID; 
     
    29782978        } elseif ( $this->is_posts_page ) { 
    29792979            $page_for_posts = get_option('page_for_posts'); 
    2980             $this->queried_object = & get_page( $page_for_posts ); 
     2980            $this->queried_object = get_page( $page_for_posts ); 
    29812981            $this->queried_object_id = (int) $this->queried_object->ID; 
    29822982        } elseif ( $this->is_singular && !is_null($this->post) ) { 
Note: See TracChangeset for help on using the changeset viewer.