mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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']];
|
||||
|
||||
Reference in New Issue
Block a user