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

git-svn-id: http://svn.automattic.com/wordpress/trunk@8966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-09-24 05:28:05 +00:00
parent bf910e58ad
commit e40f6e4067
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ function &get_post(&$post, $output = OBJECT, $filter = 'raw') {
} else {
$post = (int) $post;
if ( ! $_post = wp_cache_get($post, 'posts') ) {
$_post = & $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1", $post));
$_post = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1", $post));
if ( ! $_post )
return $null;
_get_post_ancestors($_post);