From da116b4d634b886dd02ad29ff41559e9c7237147 Mon Sep 17 00:00:00 2001 From: Thorsten Frommen Date: Mon, 24 Jul 2023 07:41:43 +0200 Subject: [PATCH] Fix post deletion for PHP 8 --- inc/Orphan_Post_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Orphan_Post_Command.php b/inc/Orphan_Post_Command.php index 98cd269..aba7ae4 100644 --- a/inc/Orphan_Post_Command.php +++ b/inc/Orphan_Post_Command.php @@ -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 ); } /**