Ticket #35025: 35025-fix.diff
File 35025-fix.diff, 807 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/comment-template.php
1330 1330 // Trees must be flattened before they're passed to the walker. 1331 1331 $comments_flat = array(); 1332 1332 foreach ( $_comments as $_comment ) { 1333 $comments_flat = array_merge( $comments_flat, array( $_comment ), $_comment->get_children( array( 1333 $comments_flat[] = $_comment; 1334 $comment_children = $_comment->get_children( array( 1334 1335 'format' => 'flat', 1335 1336 'status' => $comment_args['status'], 1336 1337 'orderby' => $comment_args['orderby'] 1337 ) ) ); 1338 ) ); 1339 foreach ( $comment_children as $comment_child ) { 1340 $comments_flat[] = $comment_child; 1341 } 1338 1342 } 1339 1343 1340 1344 /**