From dddab4bed0bd9b11604d8c2da626a7475821312d Mon Sep 17 00:00:00 2001 From: Corey McKrill <916023+coreymckrill@users.noreply.github.com> Date: Mon, 28 Oct 2019 15:44:17 -0700 Subject: [PATCH] Contributor: Use remove_contributor when processing My Pledges --- plugins/wporg-5ftf/includes/contributor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wporg-5ftf/includes/contributor.php b/plugins/wporg-5ftf/includes/contributor.php index f249352..1e05955 100644 --- a/plugins/wporg-5ftf/includes/contributor.php +++ b/plugins/wporg-5ftf/includes/contributor.php @@ -301,7 +301,7 @@ function process_my_pledges_form() { 'post_status' => $status, ) ); } elseif ( 'trash' === $status ) { - wp_delete_post( $contributor_post_id ); + remove_contributor( $contributor_post_id ); } return $message;