-
Notifications
You must be signed in to change notification settings - Fork 78
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
533d2b7
return false if 'Running money through WPCS PBC' is checked.
renintw 0c33eee
Update description.
renintw 06a380b
Add wcor_transparency_report checkbox.
renintw db6adc4
Remove wcor_send_after_and_no_report.
renintw 7c70fdb
Abstract transparency_report & through_wpcs_pbc logic for wcor_send_b…
renintw ab2b0d8
phpcs
renintw 2762c30
Update description and layout.
renintw 0947a68
Remove redundant declaration.
renintw b5273d8
fix checkbox status not updated.
renintw b03e329
Add a comment.
renintw cd7999e
Add sanitization.
renintw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,11 @@ | |
<th><input id="wcor_send_organizers" name="wcor_send_where[]" type="checkbox" value="wcor_send_organizers" <?php checked( in_array( 'wcor_send_organizers', $send_where ) ); ?>></th> | ||
<td colspan="2"><label for="wcor_send_organizers">The organizing team</label> | ||
<br> | ||
(Will send to | ||
<span>(Will send to | ||
1. <code>[email protected]</code> | ||
2. If specified, the email address under WordCamp Information section on WordCamp edit page | ||
3. If specified, the email address of the lead organizer) | ||
</span> | ||
</td> | ||
</tr> | ||
|
||
|
@@ -122,6 +123,11 @@ | |
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<th><input id="wcor_transparency_report" name="wcor_transparency_report" type="checkbox" value="wcor_transparency_report" <?php checked( $post->wcor_transparency_report, 'wcor_transparency_report' ); ?>></th> | ||
<td><label for="wcor_transparency_report">For transparency report - triggered when <strong>NOT</strong> 'Running money through WPCS PBC'</label></td> | ||
</tr> | ||
|
||
<tr> | ||
<th><input id="wcor_send_before" name="wcor_send_when" type="radio" value="wcor_send_before" <?php checked( $post->wcor_send_when, 'wcor_send_before' ); ?>></th> | ||
<td><label for="wcor_send_before">before the camp starts: </label></td> | ||
|
@@ -149,15 +155,6 @@ | |
</td> | ||
</tr> | ||
|
||
<tr> | ||
<th><input id="wcor_send_after_and_no_report" name="wcor_send_when" type="radio" value="wcor_send_after_and_no_report" <?php checked( $post->wcor_send_when, 'wcor_send_after_and_no_report' ); ?>></th> | ||
<td><label for="wcor_send_after_and_no_report">after the camp ends and no transparency report is received: </label></td> | ||
<td> | ||
<input id="wcor_send_days_after_and_no_report" name="wcor_send_days_after_and_no_report" type="text" class="small-text" value="<?php echo esc_attr( $post->wcor_send_days_after_and_no_report ); ?>" /> | ||
<label for="wcor_send_days_after_and_no_report">days</label> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<th><input id="wcor_send_trigger" name="wcor_send_when" type="radio" value="wcor_send_trigger" <?php checked( $post->wcor_send_when, 'wcor_send_trigger' ); ?>></th> | ||
<td><label for="wcor_send_trigger">on a trigger: </label></td> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
cd7999e