Fix the 'current_user_can' check for 'add-comment' for 2.9

git-svn-id: http://svn.automattic.com/wordpress/branches/2.9@12439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-12-17 21:06:41 +00:00
parent 91218306b8
commit 7dc7fcfcd9
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ case 'get-tagcloud' :
break;
case 'add-comment' :
check_ajax_referer( $action );
if ( !current_user_can( 'edit_post', $id ) )
if ( !current_user_can( 'edit_posts' ) )
die('-1');
$search = isset($_POST['s']) ? $_POST['s'] : false;
$status = isset($_POST['comment_status']) ? $_POST['comment_status'] : 'all';