From 87bb8cd69cc593fe6bed330fb1791eac9df87167 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 23 Oct 2007 18:28:40 +0000 Subject: Merge with WordPress, rev 6285 and untested git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1125 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/edit-comments.php | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'wp-admin/edit-comments.php') diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index ab1bdbc..c761e8c 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -102,24 +102,27 @@ if ('view' == $mode) { $offset = $offset + 1; $start = " start='$offset'"; - echo "
    \n"; + echo "
      \n"; $i = 0; foreach ( $comments as $comment ) { - get_comment( $comment ); // Cache it _wp_comment_list_item( $comment->comment_ID, ++$i ); } echo "
    \n\n"; if ( $extra_comments ) : ?>
+
+ + + @@ -149,7 +152,8 @@ if ( $extra_comments ) : ?> ' . __('Comment Excerpt') . ' ' . __('Actions') . ' -'; + +'; foreach ($comments as $comment) { $post = get_post($comment->comment_post_ID); $authordata = get_userdata($post->post_author); @@ -159,7 +163,7 @@ if ( $extra_comments ) : ?> ?> comment_post_ID) ) { ?> - + @@ -173,12 +177,14 @@ if ( $extra_comments ) : ?> comment_post_ID) ) { echo "" . __('Edit') . ""; } ?> comment_post_ID) ) { - echo "comment_post_ID."&c=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to delete this comment by '%s'. \n 'Cancel' to stop, 'OK' to delete."), $comment->comment_author )) . "', theCommentList );\" class='delete'>" . __('Delete') . " "; + $url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); + echo "" . __('Delete') . " "; } ?> + ?> +

'); return false } return confirm('')" /> '); return false } return confirm('')" />

-- cgit