Changeset 7083 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 02/28/2008 07:04:52 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-comments.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r7082 r7083 10 10 check_admin_referer('bulk-comments'); 11 11 12 $comments_deleted = $comments_approved = $comments_ spammed = 0;12 $comments_deleted = $comments_approved = $comments_unapproved = $comments_spammed = 0; 13 13 foreach ($_REQUEST['delete_comments'] as $comment) : // Check the permissions on each 14 14 $comment = (int) $comment; … … 26 26 wp_set_comment_status($comment, 'approve'); 27 27 $comments_approved++; 28 } elseif ( !empty( $_REQUEST['unapproveit'] ) ) { 29 wp_set_comment_status($comment, 'hold'); 30 $comments_unapproved++; 28 31 } 29 32 endforeach; 30 $redirect_to = basename( __FILE__ ) . '?deleted=' . $comments_deleted . '&approved=' . $comments_approved . '&spam=' . $comments_spammed ;33 $redirect_to = basename( __FILE__ ) . '?deleted=' . $comments_deleted . '&approved=' . $comments_approved . '&spam=' . $comments_spammed . '&unapproved=' . $comments_unapproved; 31 34 if ( !empty($_REQUEST['mode']) ) 32 35 $redirect_to = add_query_arg('mode', $_REQUEST['mode'], $redirect_to); … … 162 165 <?php endif; ?> 163 166 <input type="submit" value="<?php _e('Mark as Spam'); ?>" name="spamit" class="button-secondary" /> 167 <?php if ( 'moderated' != $comment_status ): ?> 168 <input type="submit" value="<?php _e('Unapprove'); ?>" name="unapproveit" class="button-secondary" /> 169 <?php endif; ?> 164 170 <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary" /> 165 171 <?php do_action('manage_comments_nav', $comment_status); ?>
Note: See TracChangeset
for help on using the changeset viewer.