Fix comment moderation for authors, props scribu, fixes #10677
git-svn-id: http://svn.automattic.com/wordpress/trunk@11881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
40771b0bf4
commit
b7f7105c2b
|
@ -348,9 +348,7 @@ case 'dim-comment' : // On success, die with time() instead of 1
|
|||
$x->send();
|
||||
}
|
||||
|
||||
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) )
|
||||
die('-1');
|
||||
if ( !current_user_can( 'moderate_comments' ) )
|
||||
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) && !current_user_can( 'moderate_comments' ) )
|
||||
die('-1');
|
||||
|
||||
$current = wp_get_comment_status( $comment->comment_ID );
|
||||
|
|
Loading…
Reference in New Issue