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
This commit is contained in:
Ryan Boren 2012-10-04 18:26:25 +00:00
parent faca571a3a
commit 359de78b7d
1 changed files with 2 additions and 2 deletions

View File

@ -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']];