Ticket #690: 690-meta.diff
File 690-meta.diff, 2.4 KB (added by , 10 years ago) |
---|
-
wp-content/plugins/wordcamp-organizer-reminders/wcor-mailer.php
244 244 global $multi_event_sponsors; 245 245 246 246 $recipient = $multi_event_sponsors->get_sponsor_emails( $multi_event_sponsors->get_wordcamp_me_sponsors( $wordcamp_id ) ); 247 } elseif ( 'wcor_send_sponsor_wrangler' == $send_where ) { 248 249 // If the Sponsor Wrangler email is invalid, use the default email address. 250 if ( is_email( get_post_meta( $wordcamp_id, 'Sponsor Wrangler E-mail Address', true ) ) ) { 251 $recipient = get_post_meta( $wordcamp_id, 'Sponsor Wrangler E-mail Address', true ); 252 } else { 253 $recipient = get_post_meta( $wordcamp_id, 'Email Address', true ); 254 } 255 247 256 } else { 248 257 $email_address_key = wcpt_key_to_str( 'E-mail Address', 'wcpt_' ); 249 258 -
wp-content/plugins/wordcamp-organizer-reminders/wcor-reminder.php
104 104 </tr> 105 105 106 106 <tr> 107 <th><input id="wcor_send_sponsor_wrangler" name="wcor_send_where" type="radio" value="wcor_send_sponsor_wrangler" <?php checked( $send_where, 'wcor_send_sponsor_wrangler' ); ?>></th> 108 <td colspan="2"><label for="wcor_send_sponsor_wrangler">The Sponsor Wrangler (if set)</label></td> 109 </tr> 110 111 <tr> 107 112 <th><input id="wcor_send_mes" name="wcor_send_where" type="radio" value="wcor_send_mes" <?php checked( $send_where, 'wcor_send_mes' ); ?>></th> 108 113 <td colspan="2"><label for="wcor_send_mes">The WordCamp's Multi-Event Sponsors</label></td> 109 114 </tr> … … 357 362 */ 358 363 protected function save_post_meta( $post, $new_meta ) { 359 364 if ( isset( $new_meta['wcor_send_where'] ) ) { 360 if ( in_array( $new_meta['wcor_send_where'], array( 'wcor_send_organizers', 'wcor_send_ mes', 'wcor_send_custom' ) ) ) {365 if ( in_array( $new_meta['wcor_send_where'], array( 'wcor_send_organizers', 'wcor_send_sponsor_wrangler', 'wcor_send_mes', 'wcor_send_custom' ) ) ) { 361 366 update_post_meta( $post->ID, 'wcor_send_where', $new_meta['wcor_send_where'] ); 362 367 } 363 368 }