Make WordPress Core

Changeset 22115


Ignore:
Timestamp:
10/04/2012 06:26:25 PM (13 years ago)
Author:
ryan
Message:

Avoid 'Only variables should be assigned by reference' warning. Props wonderboymusic. see #21865

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r22114 r22115  
    14291429            return;
    14301430        if ( 'all' != $r['type'] ) {
    1431             $comments_by_type = &separate_comments($comments);
     1431            $comments_by_type = separate_comments($comments);
    14321432            if ( empty($comments_by_type[$r['type']]) )
    14331433                return;
     
    14411441        if ( 'all' != $r['type'] ) {
    14421442            if ( empty($wp_query->comments_by_type) )
    1443                 $wp_query->comments_by_type = &separate_comments($wp_query->comments);
     1443                $wp_query->comments_by_type = separate_comments($wp_query->comments);
    14441444            if ( empty($wp_query->comments_by_type[$r['type']]) )
    14451445                return;
Note: See TracChangeset for help on using the changeset viewer.