﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
5811	wp-admin/edit-comments.php unnecessarily checks twice for user permissions	hansengel	hansengel	" It's easier to just show you the current code (as of [6772]):
{{{
    <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
	echo ""<a href='comment.php?action=editcomment&amp;c=$comment->comment_ID' class='edit'>"" .  __('Edit') . ""</a>""; } ?></td>
    <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
		$url = clean_url( wp_nonce_url( ""comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID"", ""delete-comment_$comment->comment_ID"" ) );
		echo ""<a href='$url' class='delete:the-comment-list:comment-$comment->comment_ID delete'>"" . __('Delete') . ""</a> "";
		} ?></td>
}}}
I don't see any point in repeatedly checking if the user has sufficient permissions on the same page. Let's simplify it a bit and check for user permissions once."	defect (bug)	closed	normal	2.9	Administration	2.5	minor	fixed	needs-patch	
