mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 22:23:32 +00:00
fix #690
This commit is contained in:
parent
223270f2a7
commit
20adc4cc97
1 changed files with 3 additions and 1 deletions
|
@ -141,7 +141,7 @@ class Scheduler {
|
|||
$type = 'Delete';
|
||||
}
|
||||
|
||||
if ( ! $type ) {
|
||||
if ( empty( $type ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -178,6 +178,8 @@ class Scheduler {
|
|||
return;
|
||||
}
|
||||
|
||||
$type = false;
|
||||
|
||||
if (
|
||||
'approved' === $new_status &&
|
||||
'approved' !== $old_status
|
||||
|
|
Loading…
Reference in a new issue