Ticket #1810: 1810.diff
| File 1810.diff, 2.5 KB (added by westi, 6 years ago) |
|---|
-
wp-admin/edit-comments.php
152 152 $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID")); 153 153 $class = ('alternate' == $class) ? '' : 'alternate'; 154 154 ?> 155 <tr class='<?php echo $class; ?>'>155 <tr id="comment-<?php echo $comment->comment_ID; ?>" class='<?php echo $class; ?>'> 156 156 <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td> 157 157 <td><?php comment_author_link() ?></td> 158 158 <td><?php comment_author_email_link() ?></td> … … 162 162 <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 163 163 echo "<a href='comment.php?action=editcomment&comment=$comment->comment_ID' class='edit'>" . __('Edit') . "</a>"; } ?></td> 164 164 <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 165 echo "<a href=\"comment.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) . "')\" class='delete'>" . __('Delete') . "</a>"; } ?></td> 165 echo "<a href=\"comment.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 )) . "' );\" class='edit'>" . __('Delete') . "</a> "; 166 } ?></td> 166 167 </tr> 167 168 <?php 168 169 } // end foreach … … 171 172 <p class="submit"><input type="submit" name="delete_button" value="<?php _e('Delete Checked Comments »') ?>" onclick="return confirm('<?php _e("You are about to delete these comments permanently \\n \'Cancel\' to stop, \'OK\' to delete.") ?>')" /> 172 173 <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam »') ?>" onclick="return confirm('<?php _e("You are about to mark these comments as spam \\n \'Cancel\' to stop, \'OK\' to mark as spam.") ?>')" /></p> 173 174 </form> 175 <div id="ajax-response"></div> 174 176 <?php 175 177 } else { 176 178 ?>
