[wp-cvs] wordpress/wp-admin edit-form-comment.php, 1.11, 1.12 post.php, 1.70, 1.71

Ryan Boren rboren at users.sourceforge.net
Wed Jul 28 04:01:47 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26930

Modified Files:
	edit-form-comment.php post.php 
Log Message:
Bug 0000163.  Confirm comment deletion.  Courtesy of BrianMeidell and Kitten.

Index: edit-form-comment.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit-form-comment.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** edit-form-comment.php	15 Jun 2004 23:24:35 -0000	1.11
--- edit-form-comment.php	28 Jul 2004 04:01:45 -0000	1.12
***************
*** 79,82 ****
  
  </form>
! <p><a class="delete" href="post.php?action=deletecomment&amp;noredir=true&amp;comment=<?php echo $commentdata['comment_ID']; ?>&amp;p=<?php echo $commentdata['comment_post_ID']; ?>"><?php _e('Delete comment') ?></a></p>
  </div>
--- 79,82 ----
  
  </form>
! <p><a class="delete" href="post.php?action=confirmdeletecomment&amp;noredir=true&amp;comment=<?php echo $commentdata['comment_ID']; ?>&amp;p=<?php echo $commentdata['comment_post_ID']; ?>"><?php _e('Delete comment') ?></a></p>
  </div>

Index: post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/post.php,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** post.php	24 Jul 2004 03:22:49 -0000	1.70
--- post.php	28 Jul 2004 04:01:45 -0000	1.71
***************
*** 511,515 ****
  
  echo "<div class=\"wrap\">\n";
! echo "<p><?php __('<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";
--- 511,515 ----
  
  echo "<div class=\"wrap\">\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";




More information about the cvs mailing list