Contributor: Use remove_contributor when processing My Pledges

This commit is contained in:
Corey McKrill 2019-10-28 15:44:17 -07:00
parent 7da0387df2
commit dddab4bed0
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38

View file

@ -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;