Make WordPress Core

Changeset 8966


Ignore:
Timestamp:
09/24/2008 05:28:05 AM (16 years ago)
Author:
ryan
Message:

Don't try to assign non-ref return value by ref. Props Sam_a. fixes #7783

File:
1 edited

Legend:

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

    r8920 r8966  
    226226        $post = (int) $post;
    227227        if ( ! $_post = wp_cache_get($post, 'posts') ) {
    228             $_post = & $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1", $post));
     228            $_post = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1", $post));
    229229            if ( ! $_post )
    230230                return $null;
Note: See TracChangeset for help on using the changeset viewer.