Fix gravatars for infinite comments. Props mdawaffe. fixes #7432 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -392,13 +392,16 @@ case 'add-comment' :
|
||||
|
||||
list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1 );
|
||||
|
||||
if ( get_option('show_avatars') )
|
||||
add_filter( 'comment_author', 'floated_admin_avatar' );
|
||||
|
||||
if ( !$comments )
|
||||
die('1');
|
||||
$x = new WP_Ajax_Response();
|
||||
foreach ( (array) $comments as $comment ) {
|
||||
get_comment( $comment );
|
||||
ob_start();
|
||||
_wp_comment_row( $comment->comment_ID, $mode, false );
|
||||
_wp_comment_row( $comment->comment_ID, $mode, $status );
|
||||
$comment_list_item = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$x->add( array(
|
||||
|
||||
Reference in New Issue
Block a user