diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index a4272ef8ae..93814fbcba 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -365,7 +365,7 @@ case 'add-comment' : foreach ( (array) $comments as $comment ) { get_comment( $comment ); ob_start(); - _wp_comment_row( $comment->comment_ID, $mode ); + _wp_comment_row( $comment->comment_ID, $mode, false ); $comment_list_item = ob_get_contents(); ob_end_clean(); $x->add( array( diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index f3a894d90c..0961588aee 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -191,13 +191,13 @@ if ($comments) { comment_ID, $mode ); + _wp_comment_row( $comment->comment_ID, $mode, $comment_status ); ?> comment_ID, $mode ); + _wp_comment_row( $comment->comment_ID, $mode, $comment_status ); ?> diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 6784f370dc..d25ba13ec8 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -188,7 +188,7 @@ if ( 1 == count($posts) && isset( $_GET['page_id'] ) ) : comment_ID, 'detail', false ); + _wp_comment_row( $comment->comment_ID, 'detail', false, false ); ?> diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 8e61e1431c..b14caee781 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -212,7 +212,7 @@ if ( 1 == count($posts) && isset( $_GET['p'] ) ) : comment_ID, 'detail', false ); + _wp_comment_row( $comment->comment_ID, 'detail', false, false ); ?> diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 1c2d22bf3e..060e5129dc 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -592,7 +592,7 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num ) { return array($comments, $total); } -function _wp_comment_row( $comment_id, $mode, $checkbox = true ) { +function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true ) { global $comment, $post; $comment = get_comment( $comment_id ); $post = get_post($comment->comment_post_ID);