Changeset 2832 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 08/31/2005 02:39:17 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r2756 r2832 77 77 $start = ''; 78 78 79 echo "<ol class='commentlist' $start>";79 echo "<ol id='the-list' class='commentlist' $start>"; 80 80 $i = 0; 81 81 foreach ($comments as $comment) { … … 87 87 if ($i % 2) 88 88 $class .= ' alternate'; 89 echo "<li class='$class'>";89 echo "<li id='comment-$comment->comment_ID' class='$class'>"; 90 90 ?> 91 91 <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> … … 98 98 } 99 99 if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 100 echo " | <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&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> — ";100 echo " | <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), wp_specialchars( $comment->comment_author, 1 )) . "' );\">" . __('Delete Comment') . "</a> — "; 101 101 } // end if any comments to show 102 102 // Get post title … … 111 111 <?php } // end foreach ?> 112 112 </ol> 113 114 <div id="ajax-response"></div> 113 115 114 116 <?php
Note: See TracChangeset
for help on using the changeset viewer.