<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[2853] sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders: WordCamp.org: Clean whitespace in organizer reminders.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/2853">2853</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/2853","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>kovshenin</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2016-03-30 14:11:30 +0000 (Wed, 30 Mar 2016)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>WordCamp.org: Clean whitespace in organizer reminders.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitesbranchesapplicationtrackingwordcamporgpublic_htmlwpcontentpluginswordcamporganizerreminderswcormailerphp">sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-mailer.php</a></li>
<li><a href="#sitesbranchesapplicationtrackingwordcamporgpublic_htmlwpcontentpluginswordcamporganizerreminderswcorreminderphp">sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitesbranchesapplicationtrackingwordcamporgpublic_htmlwpcontentpluginswordcamporganizerreminderswcormailerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-mailer.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-mailer.php      2016-03-30 12:21:29 UTC (rev 2852)
+++ sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-mailer.php        2016-03-30 14:11:30 UTC (rev 2853)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -6,7 +6,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">  */
</span><span class="cx" style="display: block; padding: 0 10px"> class WCOR_Mailer {
</span><span class="cx" style="display: block; padding: 0 10px">        public $triggers;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Constructor
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,9 +60,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                ),
</span><span class="cx" style="display: block; padding: 0 10px">                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 add_action( 'wcor_send_timed_emails', array( $this, 'send_timed_emails' ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 foreach ( $this->triggers as $trigger_id => $trigger ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        foreach( $trigger['actions'] as $action ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                add_action( $action['name'], array( $this, $action['callback'] ), $action['priority'], $action['parameters'] );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -71,7 +71,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * Schedule cron job when plugin is activated  
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * Schedule cron job when plugin is activated
</ins><span class="cx" style="display: block; padding: 0 10px">          */
</span><span class="cx" style="display: block; padding: 0 10px">        public function activate() {
</span><span class="cx" style="display: block; padding: 0 10px">                if ( wp_next_scheduled( 'wcor_send_timed_emails' ) === false ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -82,7 +82,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        );
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Clear cron job when plugin is deactivated
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -93,7 +93,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Wrapper for wp_mail() that customizes the subject, body and headers
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * We want to make sure that replies go to support@wordcamp.org, rather than the fake address that WordPress sends from, but 
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  * We want to make sure that replies go to support@wordcamp.org, rather than the fake address that WordPress sends from, but
</ins><span class="cx" style="display: block; padding: 0 10px">          * we don't want to be flagged as spam for forging the From header, so we set the Sender header.
</span><span class="cx" style="display: block; padding: 0 10px">         * @see http://stackoverflow.com/q/4728393/450127
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -212,7 +212,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        '[travel_wrangler_email]',
</span><span class="cx" style="display: block; padding: 0 10px">                        '[safety_wrangler_name]',
</span><span class="cx" style="display: block; padding: 0 10px">                        '[safety_wrangler_email]',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                         // Venue
</span><span class="cx" style="display: block; padding: 0 10px">                        '[venue_name]',
</span><span class="cx" style="display: block; padding: 0 10px">                        '[venue_address]',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -286,7 +286,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        // Miscellaneous
</span><span class="cx" style="display: block; padding: 0 10px">                        $this->get_mes_info( $wordcamp->ID ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 return str_replace( $search, $replace, $content );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -453,7 +453,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                return $this->mail( $recipient, $email->post_title, $email->post_content, array(), $email, $wordcamp );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-        
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">         /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Send e-mails that are scheduled to go out at a specific time (e.g., 3 days before the camp)
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -489,13 +489,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                ),
</span><span class="cx" style="display: block; padding: 0 10px">                        ),
</span><span class="cx" style="display: block; padding: 0 10px">                ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 foreach ( $wordcamps as $wordcamp ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        $sent_email_ids = (array) get_post_meta( $wordcamp->ID, 'wcor_sent_email_ids', true );
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                        foreach ( $reminder_emails as $email ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                $recipient = $this->get_recipients( $wordcamp->ID, $email->ID );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 if ( $this->timed_email_is_ready_to_send( $wordcamp, $email, $sent_email_ids ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        if ( $this->mail( $recipient, $email->post_title, $email->post_content, array(), $email, $wordcamp ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                $sent_email_ids[] = $email->ID;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -519,7 +519,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">         *
</span><span class="cx" style="display: block; padding: 0 10px">         * @todo It'd be nice to have some unit tests for this function, since there are a lot of different cases, but it seems like that might be
</span><span class="cx" style="display: block; padding: 0 10px">         * hard to do because of having to mock get_post_meta(), current_time(), etc. We could pass that info in, but that doesn't seem very elegant.
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         *       
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  *
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param WP_Post $wordcamp
</span><span class="cx" style="display: block; padding: 0 10px">         * @param WP_Post $email
</span><span class="cx" style="display: block; padding: 0 10px">         * @param array   $sent_email_ids The IDs of emails that have already been sent to the $wordcamp post
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -543,10 +543,10 @@
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ! in_array( $email->ID, $sent_email_ids ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( 'wcor_send_before' == $send_when ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                $days_before = absint( get_post_meta( $email->ID, 'wcor_send_days_before', true ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 if ( $start_date && $days_before ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        $send_date = $start_date - ( $days_before * DAY_IN_SECONDS );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                         if ( $send_date <= current_time( 'timestamp' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                $ready = true;
</span><span class="cx" style="display: block; padding: 0 10px">                                        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -556,7 +556,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                                if ( $end_date && $days_after ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                        $send_date = $end_date + ( $days_after * DAY_IN_SECONDS );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                        
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                         if ( $send_date <= current_time( 'timestamp' ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                                $ready = true;
</span><span class="cx" style="display: block; padding: 0 10px">                                        }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -574,7 +574,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                }
</span><span class="cx" style="display: block; padding: 0 10px">                        }
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 return $ready;
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span></span></pre></div>
<a id="sitesbranchesapplicationtrackingwordcamporgpublic_htmlwpcontentpluginswordcamporganizerreminderswcorreminderphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php    2016-03-30 12:21:29 UTC (rev 2852)
+++ sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php      2016-03-30 14:11:30 UTC (rev 2853)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -52,7 +52,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                        'query_var'           => false,
</span><span class="cx" style="display: block; padding: 0 10px">                        'supports'            => array( 'title', 'editor', 'author', 'revisions' ),
</span><span class="cx" style="display: block; padding: 0 10px">                );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 register_post_type( self::POST_TYPE_SLUG, $params );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -107,72 +107,72 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_sponsor_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_sponsor_wrangler" <?php checked( in_array( 'wcor_send_sponsor_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_sponsor_wrangler">The Sponsor Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_budget_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_budget_wrangler" <?php checked( in_array( 'wcor_send_budget_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_budget_wrangler">The Budget Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_venue_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_venue_wrangler" <?php checked( in_array( 'wcor_send_venue_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_venue_wrangler">The Venue Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_speaker_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_speaker_wrangler" <?php checked( in_array( 'wcor_send_speaker_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_speaker_wrangler">The Speaker Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_food_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_food_wrangler" <?php checked( in_array( 'wcor_send_food_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_food_wrangler">The Food/Beverage Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_swag_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_swag_wrangler" <?php checked( in_array( 'wcor_send_swag_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_swag_wrangler">The Swag Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_volunteer_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_volunteer_wrangler" <?php checked( in_array( 'wcor_send_volunteer_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_volunteer_wrangler">The Volunteer Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_printing_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_printing_wrangler" <?php checked( in_array( 'wcor_send_printing_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_printing_wrangler">The Printing Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_design_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_design_wrangler" <?php checked( in_array( 'wcor_send_design_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_design_wrangler">The Design Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_website_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_website_wrangler" <?php checked( in_array( 'wcor_send_website_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_website_wrangler">The Website Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_social_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_social_wrangler" <?php checked( in_array( 'wcor_send_social_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_social_wrangler">The Social Media/Publicity Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_a_v_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_a_v_wrangler" <?php checked( in_array( 'wcor_send_a_v_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_a_v_wrangler">The A/V Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_party_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_party_wrangler" <?php checked( in_array( 'wcor_send_party_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_party_wrangler">The Party Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_travel_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_travel_wrangler" <?php checked( in_array( 'wcor_send_travel_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_travel_wrangler">The Travel Wrangler</label></td>
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                 <tr>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <th><input id="wcor_send_safety_wrangler" name="wcor_send_where[]" type="checkbox" value="wcor_send_safety_wrangler" <?php checked( in_array( 'wcor_send_safety_wrangler', $send_where ) ); ?>></th>
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td colspan="2"><label for="wcor_send_safety_wrangler">The Safety Wrangler</label></td>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -195,8 +195,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                </tr>
</span><span class="cx" style="display: block; padding: 0 10px">                        </tbody>
</span><span class="cx" style="display: block; padding: 0 10px">                </table>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
-               
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 <h4>When should this e-mail be sent?</h4>
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                <table>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -234,7 +234,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">                                        <td>
</span><span class="cx" style="display: block; padding: 0 10px">                                                <select name="wcor_which_trigger">
</span><span class="cx" style="display: block; padding: 0 10px">                                                        <option value="null" <?php selected( $which_trigger, false ); ?>></option>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                                                        
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                                                         <?php foreach ( $GLOBALS['WCOR_Mailer']->triggers as $trigger_id => $trigger ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px">                                                                <option value="<?php echo esc_attr( $trigger_id ); ?>" <?php selected( $which_trigger, $trigger_id ); ?>><?php echo esc_html( $trigger['name'] ); ?></option>
</span><span class="cx" style="display: block; padding: 0 10px">                                                        <?php endforeach; ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -437,7 +437,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Checks to make sure the conditions for saving post meta are met
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * 
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  *
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param int $post_id
</span><span class="cx" style="display: block; padding: 0 10px">         * @param object $post
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -455,14 +455,14 @@
</span><span class="cx" style="display: block; padding: 0 10px">                if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || ! isset( $post->ID ) || $post->post_status == 'auto-draft' ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        return;
</span><span class="cx" style="display: block; padding: 0 10px">                }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px">                 $this->save_post_meta( $post, $_POST );
</span><span class="cx" style="display: block; padding: 0 10px">                $this->send_manual_email( $post, $_POST );
</span><span class="cx" style="display: block; padding: 0 10px">        }
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">        /**
</span><span class="cx" style="display: block; padding: 0 10px">         * Saves the meta data for the reminder post
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-         * 
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+  *
</ins><span class="cx" style="display: block; padding: 0 10px">          * @param WP_Post $post
</span><span class="cx" style="display: block; padding: 0 10px">         * @param array $new_meta
</span><span class="cx" style="display: block; padding: 0 10px">         */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -480,8 +480,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 
</span><span class="cx" style="display: block; padding: 0 10px">                if ( isset( $new_meta['wcor_send_custom_address'] ) && is_email( $new_meta['wcor_send_custom_address'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        update_post_meta( $post->ID, 'wcor_send_custom_address', sanitize_email( $new_meta['wcor_send_custom_address'] ) );
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                }               
-               
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+         }
+
</ins><span class="cx" style="display: block; padding: 0 10px">                 if ( isset( $new_meta['wcor_send_when'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                        if ( in_array( $new_meta['wcor_send_when'], array( 'wcor_send_before', 'wcor_send_after', 'wcor_send_after_pending', 'wcor_send_trigger' ) ) ) {
</span><span class="cx" style="display: block; padding: 0 10px">                                update_post_meta( $post->ID, 'wcor_send_when', $new_meta['wcor_send_when'] );
</span></span></pre>
</div>
</div>

</body>
</html>