Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw committed May 28, 2024
1 parent 7c70fdb commit 430ded6
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,21 @@ protected function timed_email_is_ready_to_send( $wordcamp, $email, $sent_email_
$days_after = absint( get_post_meta( $email->ID, 'wcor_send_days_after', true ) );
$transparency_report = get_post_meta( $email->ID, 'wcor_transparency_report', true );

if ( $end_date && $days_after ) {
$send_date = $end_date + ( $days_after * DAY_IN_SECONDS );

if ( $send_date <= current_time( 'timestamp' ) ) {
if ( $transparency_report ) {
$report_received = get_post_meta( $wordcamp->ID, 'Transparency Report Received', true );
if ( ! $report_received ) {
$ready = true;
}
} else {
$ready = true;
}
}
}

if ( $transparency_report ) {
$report_received = get_post_meta( $wordcamp->ID, 'Transparency Report Received', true );

Expand Down

0 comments on commit 430ded6

Please sign in to comment.