-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new condition for organizer reminder #1328
Conversation
430ded6
to
2762c30
Compare
update_post_meta( $post->ID, 'wcor_send_when', $new_meta['wcor_send_when'] ); | ||
} | ||
} | ||
|
||
delete_post_meta( $post->ID, 'wcor_transparency_report' ); | ||
if ( isset( $new_meta['wcor_transparency_report'] ) ) { | ||
update_post_meta( $post->ID, 'wcor_transparency_report', $new_meta['wcor_transparency_report'] ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets make sure to have some sanitization around this since it's just saving from $_POST
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per inline comment.
296890e
to
cd7999e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Closes #1327
Description
In this PR, the checkbox
For transparency report - triggered when NOT 'Running money through WPCS PBC'
is added. As long as this option is checked, the reminder will determine whether the current WordCamp is running money through WPCS PBC. If not, it will send the email according to the time set below.Testing Cases
For transparency report - triggered when NOT 'Running money through WPCS PBC'
is CHECKED-30 days:
7 days:
14 days:
For transparency report - triggered when NOT 'Running money through WPCS PBC'
is first CHECKEDThe test here is to ensure that if
For transparency report - triggered when NOT 'Running money through WPCS PBC
is not checked, then this reminder email should be sent regardless of whether "Running money through WPCS PBC" is checked or not.Then NOT CHECKED
How to test the changes in this Pull Request:
Same as #1290 (comment)