Add space between if and ‘(‘
[MAILPOET-1791]
This commit is contained in:
@@ -37,13 +37,13 @@ class Comment {
|
||||
}
|
||||
|
||||
static function onSubmit($comment_id, $comment_status) {
|
||||
if($comment_status === Comment::SPAM) return;
|
||||
if ($comment_status === Comment::SPAM) return;
|
||||
|
||||
if(
|
||||
if (
|
||||
isset($_POST['mailpoet']['subscribe_on_comment'])
|
||||
&& (bool)$_POST['mailpoet']['subscribe_on_comment'] === true
|
||||
) {
|
||||
if($comment_status === Comment::PENDING_APPROVAL) {
|
||||
if ($comment_status === Comment::PENDING_APPROVAL) {
|
||||
// add a comment meta to remember to subscribe the user
|
||||
// once the comment gets approved
|
||||
add_comment_meta(
|
||||
@@ -59,7 +59,7 @@ class Comment {
|
||||
}
|
||||
|
||||
static function onStatusUpdate($comment_id, $action) {
|
||||
if($action === 'approve') {
|
||||
if ($action === 'approve') {
|
||||
// check if the comment's author wants to subscribe
|
||||
$do_subscribe = (
|
||||
get_comment_meta(
|
||||
@@ -69,7 +69,7 @@ class Comment {
|
||||
) === 'subscribe_on_comment'
|
||||
);
|
||||
|
||||
if($do_subscribe === true) {
|
||||
if ($do_subscribe === true) {
|
||||
static::subscribeAuthorOfComment($comment_id);
|
||||
|
||||
delete_comment_meta($comment_id, 'mailpoet');
|
||||
@@ -81,7 +81,7 @@ class Comment {
|
||||
$settings = new SettingsController();
|
||||
$segment_ids = $settings->get('subscribe.on_comment.segments', array());
|
||||
|
||||
if(!empty($segment_ids)) {
|
||||
if (!empty($segment_ids)) {
|
||||
$comment = get_comment($comment_id);
|
||||
|
||||
$result = Subscriber::subscribe(
|
||||
|
Reference in New Issue
Block a user