From e40f6e406783dcd7e873e6b93ab7c647f83540c9 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 24 Sep 2008 05:28:05 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index bf9d7bd13b..4132db4356 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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);