this is a nice and quick plugin, however you should not use
$comment_to_save['comment_approved'] == 'spam'
As that is true even if $comment_to_save[‘comment_approved’] is 0. When editing a published comment it results in the “This comment was marked as spam” error message.
Please use this condition and issue a plugin update:
strcmp('spam',$comment_to_save['comment_approved']) == 0
- The topic ‘Bug when editing a published comment’ is closed to new replies.