Skip to content

Commit

Permalink
fix #690
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Feb 11, 2024
1 parent 223270f commit 20adc4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/class-scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static function schedule_post_activity( $new_status, $old_status, $post )
$type = 'Delete';
}

if ( ! $type ) {
if ( empty( $type ) ) {
return;
}

Expand Down Expand Up @@ -178,6 +178,8 @@ public static function schedule_comment_activity( $new_status, $old_status, $com
return;
}

$type = false;

if (
'approved' === $new_status &&
'approved' !== $old_status
Expand Down

0 comments on commit 20adc4c

Please sign in to comment.