[wp-cvs] wordpress/wp-admin edit-comments.php,1.23,1.23.4.1
Ryan Boren
rboren at users.sourceforge.net
Tue Nov 30 19:25:29 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8704/wp-admin
Modified Files:
Tag: WordPress-Ver-1_2-Branch
edit-comments.php
Log Message:
Fix mass comment deletion.
Index: edit-comments.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit-comments.php,v
retrieving revision 1.23
retrieving revision 1.23.4.1
diff -C2 -d -r1.23 -r1.23.4.1
*** edit-comments.php 14 May 2004 06:19:46 -0000 1.23
--- edit-comments.php 30 Nov 2004 19:25:25 -0000 1.23.4.1
***************
*** 40,48 ****
<p><a href="?mode=view"><?php _e('View Mode') ?></a> | <a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a></p>
<?php
! if (!empty($delete_comments)) {
// I had this all as one query but then realized we weren't checking permissions on each comment.
$del_comments = ''; $safe_delete_commeents = ''; $i = 0;
! foreach ($delete_comments as $comment) { // Check the permissions on each
$comment = intval($comment);
$post_id = $wpdb->get_var("SELECT comment_post_ID FROM $tablecomments WHERE comment_ID = $comment");
--- 40,48 ----
<p><a href="?mode=view"><?php _e('View Mode') ?></a> | <a href="?mode=edit"><?php _e('Mass Edit Mode') ?></a></p>
<?php
! if (!empty($_POST['delete_comments'])) {
// I had this all as one query but then realized we weren't checking permissions on each comment.
$del_comments = ''; $safe_delete_commeents = ''; $i = 0;
! foreach ($_POST['delete_comments'] as $comment) { // Check the permissions on each
$comment = intval($comment);
$post_id = $wpdb->get_var("SELECT comment_post_ID FROM $tablecomments WHERE comment_ID = $comment");
More information about the cvs
mailing list