summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/edit-comments.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 09:50:02 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 09:50:02 +0000
commitf9d834aed9c0c6cba6faf7777e7952bf2cd8e4a5 (patch)
tree239419a4308e9639822269ff5eb935262cbd46a3 /wp-inst/wp-admin/edit-comments.php
parentad74c2c392bcdd0b8f2eee0e4d9cd0c2309617e3 (diff)
downloadwordpress-mu-f9d834aed9c0c6cba6faf7777e7952bf2cd8e4a5.tar.gz
wordpress-mu-f9d834aed9c0c6cba6faf7777e7952bf2cd8e4a5.tar.xz
wordpress-mu-f9d834aed9c0c6cba6faf7777e7952bf2cd8e4a5.zip
WP Core Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@261 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/edit-comments.php')
-rw-r--r--wp-inst/wp-admin/edit-comments.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/wp-inst/wp-admin/edit-comments.php b/wp-inst/wp-admin/edit-comments.php
index 57ca597..3faf7e1 100644
--- a/wp-inst/wp-admin/edit-comments.php
+++ b/wp-inst/wp-admin/edit-comments.php
@@ -76,7 +76,7 @@ if ('view' == $mode) {
else
$start = '';
- echo "<ol class='commentlist' $start>";
+ echo "<ol id='the-list' class='commentlist' $start>";
$i = 0;
foreach ($comments as $comment) {
++$i; $class = '';
@@ -86,7 +86,7 @@ if ('view' == $mode) {
$class .= ' unapproved';
if ($i % 2)
$class .= ' alternate';
- echo "<li class='$class'>";
+ echo "<li id='comment-$comment->comment_ID' class='$class'>";
?>
<p><strong><?php _e('Name:') ?></strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('E-mail:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url ) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
@@ -97,7 +97,7 @@ if ('view' == $mode) {
echo " | <a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">" . __('Edit Comment') . "</a>";
}
if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
- echo " | <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return confirm('" . sprintf(__("You are about to delete this comment by \'%s\'\\n \'Cancel\' to stop, \'OK\' to delete."), $comment->comment_author) . "')\">" . __('Delete Comment') . "</a> &#8212; ";
+ echo " | <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by &quot;%s&quot;.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), wp_specialchars( $comment->comment_author, 1 )) . "' );\">" . __('Delete Comment') . "</a> &#8212; ";
} // end if any comments to show
// Get post title
if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
@@ -111,6 +111,8 @@ if ('view' == $mode) {
<?php } // end foreach ?>
</ol>
+<div id="ajax-response"></div>
+
<?php
} else {