mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
Bug 0000163. Confirm comment deletion. Courtesy of BrianMeidell and Kitten.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f778e2a657
commit
c1084e521a
@ -78,5 +78,5 @@ if ($user_level > 4) {
|
||||
?>
|
||||
|
||||
</form>
|
||||
<p><a class="delete" href="post.php?action=deletecomment&noredir=true&comment=<?php echo $commentdata['comment_ID']; ?>&p=<?php echo $commentdata['comment_post_ID']; ?>"><?php _e('Delete comment') ?></a></p>
|
||||
<p><a class="delete" href="post.php?action=confirmdeletecomment&noredir=true&comment=<?php echo $commentdata['comment_ID']; ?>&p=<?php echo $commentdata['comment_post_ID']; ?>"><?php _e('Delete comment') ?></a></p>
|
||||
</div>
|
||||
|
@ -510,7 +510,7 @@ $p = $_GET['p'];
|
||||
$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
|
||||
|
||||
echo "<div class=\"wrap\">\n";
|
||||
echo "<p><?php __('<strong>Caution:</strong> You are about to delete the following comment:'); ?></p>\n";
|
||||
echo "<p>" . __('<strong>Caution:</strong> You are about to delete the following comment:') . "</p>\n";
|
||||
echo "<table border=\"0\">\n";
|
||||
echo "<tr><td>" . __('Author:') . "</td><td>" . $commentdata["comment_author"] . "</td></tr>\n";
|
||||
echo "<tr><td>" . __('E-mail:') . "</td><td>" . $commentdata["comment_author_email"] . "</td></tr>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user