From 359de78b7dc573cf816d820bae62a1df7e12f32f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 4 Oct 2012 18:26:25 +0000 Subject: [PATCH] Avoid 'Only variables should be assigned by reference' warning. Props wonderboymusic. see #21865 git-svn-id: http://core.svn.wordpress.org/trunk@22115 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index dc7ad40015..907bc77279 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1428,7 +1428,7 @@ function wp_list_comments($args = array(), $comments = null ) { if ( empty($comments) ) return; if ( 'all' != $r['type'] ) { - $comments_by_type = &separate_comments($comments); + $comments_by_type = separate_comments($comments); if ( empty($comments_by_type[$r['type']]) ) return; $_comments = $comments_by_type[$r['type']]; @@ -1440,7 +1440,7 @@ function wp_list_comments($args = array(), $comments = null ) { return; if ( 'all' != $r['type'] ) { if ( empty($wp_query->comments_by_type) ) - $wp_query->comments_by_type = &separate_comments($wp_query->comments); + $wp_query->comments_by_type = separate_comments($wp_query->comments); if ( empty($wp_query->comments_by_type[$r['type']]) ) return; $_comments = $wp_query->comments_by_type[$r['type']];