Skip to content

Commit

Permalink
Avoid 'Only variables should be assigned by reference' warning. Props…
Browse files Browse the repository at this point in the history
… wonderboymusic. see #21865

git-svn-id: http://core.svn.wordpress.org/trunk@22115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
Ryan Boren committed Oct 4, 2012
1 parent faca571 commit 359de78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-includes/comment-template.php
Expand Up @@ -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']];
Expand All @@ -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']];
Expand Down

0 comments on commit 359de78

Please sign in to comment.