mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
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:
parent
bf910e58ad
commit
e40f6e4067
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user