Avoid 'Only variables should be assigned by reference' warning. Props wonderboymusic. see #21865
git-svn-id: https://develop.svn.wordpress.org/trunk@22115 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e22b981706
commit
d6f78d6554
@ -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']];
|
||||
|
Loading…
Reference in New Issue
Block a user