Ticket #10948: 10948.diff
File 10948.diff, 860 bytes (added by , 12 years ago) |
---|
-
wp-includes/comment-template.php
1508 1508 'reverse_children' => '', 1509 1509 'format' => 'xhtml', // or html5 1510 1510 'short_ping' => false, 1511 'echo' => 1 1511 1512 ); 1512 1513 1513 1514 $r = wp_parse_args( $args, $defaults ); … … 1575 1576 1576 1577 if ( empty($walker) ) 1577 1578 $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 1580 1584 $wp_query->max_num_comment_pages = $walker->max_pages; 1581 1585 1582 1586 $in_comment_loop = false; 1587 1588 if ( $r['echo'] ) 1589 echo $output; 1590 else 1591 return $output; 1583 1592 } 1584 1593 1585 1594 /**