Make WordPress Core

Ticket #10948: 10948.diff

File 10948.diff, 860 bytes (added by DrewAPicture, 12 years ago)

Refreshes return-wp-list-comments.diff

  • wp-includes/comment-template.php

     
    15081508                'reverse_children'  => '',
    15091509                'format'            => 'xhtml', // or html5
    15101510                'short_ping'        => false,
     1511                'echo'              => 1
    15111512        );
    15121513
    15131514        $r = wp_parse_args( $args, $defaults );
     
    15751576
    15761577        if ( empty($walker) )
    15771578                $walker = new Walker_Comment;
    1578 
    1579         $walker->paged_walk($_comments, $max_depth, $page, $per_page, $r);
     1579       
     1580        ob_start();
     1581        $walker->paged_walk( $_comments, $max_depth, $page, $per_page, $r );
     1582        $output = ob_get_clean();
     1583       
    15801584        $wp_query->max_num_comment_pages = $walker->max_pages;
    15811585
    15821586        $in_comment_loop = false;
     1587       
     1588        if ( $r['echo'] )
     1589                echo $output;
     1590        else
     1591                return $output;
    15831592}
    15841593
    15851594/**