Skip to content

Commit 20adc4c

Browse files
committed
fix #690
1 parent 223270f commit 20adc4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

includes/class-scheduler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public static function schedule_post_activity( $new_status, $old_status, $post )
141141
$type = 'Delete';
142142
}
143143

144-
if ( ! $type ) {
144+
if ( empty( $type ) ) {
145145
return;
146146
}
147147

@@ -178,6 +178,8 @@ public static function schedule_comment_activity( $new_status, $old_status, $com
178178
return;
179179
}
180180

181+
$type = false;
182+
181183
if (
182184
'approved' === $new_status &&
183185
'approved' !== $old_status

0 commit comments

Comments
 (0)