Pledge: Log the reason why a pledge was deactivated.

This commit is contained in:
Ian Dunn 2022-03-17 14:30:58 -07:00
parent ac25f4c008
commit d22f13f2c1
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
3 changed files with 24 additions and 4 deletions

View file

@ -271,7 +271,7 @@ function process_form_remove( $pledge_id, $auth_token ) {
);
}
$result = Pledge\deactivate( $pledge_id, true );
$result = Pledge\deactivate( $pledge_id, true, 'Organization admin deactivated via Manage form.' );
if ( is_wp_error( $result ) ) {
return $result;