Skip to content

Commit da116b4

Browse files
authored
Fix post deletion for PHP 8
1 parent 1f16f6f commit da116b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Orphan_Post_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function delete( array $args, array $assoc_args ): void {
138138
*/
139139
protected function delete_orphan( int $id ): bool {
140140

141-
return wp_delete_post( $id, true );
141+
return (bool) wp_delete_post( $id, true );
142142
}
143143

144144
/**

0 commit comments

Comments
 (0)