Update pledge UI and email copy (#64)

Fixes #61
This commit is contained in:
Corey McKrill 2019-10-29 16:37:14 -07:00 committed by GitHub
parent 9f47f83ef4
commit 83125dd8b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 42 deletions

View file

@ -295,13 +295,13 @@ function process_my_pledges_form() {
wp_verify_nonce( $nonce, 'join_decline_organization' ) || wp_nonce_ays( 'join_decline_organization' );
$status = 'trash';
$message = "Your have declined the invitation from {$pledge->post_title}.";
$message = "You have declined the pledge invitation from {$pledge->post_title}.";
} elseif ( filter_input( INPUT_POST, 'leave_organization' ) ) {
wp_verify_nonce( $nonce, 'leave_organization' ) || wp_nonce_ays( 'leave_organization' );
$status = 'trash';
$message = "Your have left the {$pledge->post_title} pledge.";
$message = "You have left the {$pledge->post_title} pledge.";
}
if ( 'publish' === $status ) {