Skip to content

Commit

Permalink
Merge pull request #10 from tfrommen/patch-1
Browse files Browse the repository at this point in the history
Fix post deletion for PHP 8
  • Loading branch information
roborourke authored Dec 4, 2024
2 parents 1f16f6f + da116b4 commit fbfdc85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Orphan_Post_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function delete( array $args, array $assoc_args ): void {
*/
protected function delete_orphan( int $id ): bool {

return wp_delete_post( $id, true );
return (bool) wp_delete_post( $id, true );
}

/**
Expand Down

0 comments on commit fbfdc85

Please sign in to comment.