mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 10:05:43 +03:00
Contributor: Use remove_contributor when processing My Pledges
This commit is contained in:
parent
7da0387df2
commit
dddab4bed0
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ function process_my_pledges_form() {
|
||||||
'post_status' => $status,
|
'post_status' => $status,
|
||||||
) );
|
) );
|
||||||
} elseif ( 'trash' === $status ) {
|
} elseif ( 'trash' === $status ) {
|
||||||
wp_delete_post( $contributor_post_id );
|
remove_contributor( $contributor_post_id );
|
||||||
}
|
}
|
||||||
|
|
||||||
return $message;
|
return $message;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue