Fix unit tests + enable signup confirmation by default

- minor cleanup
This commit is contained in:
Jonathan Labreuille
2016-01-14 15:57:46 +01:00
parent 07b7636a72
commit 138a631ed7
4 changed files with 17 additions and 10 deletions

View File

@@ -31,11 +31,7 @@ class Comment {
if(
isset($_POST['mailpoet']['subscribe_on_comment'])
&&
filter_var(
$_POST['mailpoet']['subscribe_on_comment'],
FILTER_VALIDATE_BOOLEAN
) === true
&& $_POST['mailpoet']['subscribe_on_comment']
) {
if($comment_status === Comment::PENDING_APPROVAL) {
// add a comment meta to remember to subscribe the user