Changeset 11563 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-emails.php
- Timestamp:
- 02/16/2022 05:57:57 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-emails.php
r11562 r11563 58 58 } 59 59 60 $no_reply = apply_filters( 'bbp_subscription_to_email', bbp_get_do_not_reply_address() ); 61 $dest_emails = is_array( $attrs['to'] ) ? $attrs['to'] : explode( ',', $attrs['to'] ); 62 60 63 // Pull out CC's and BCC's to a separate array. 61 64 foreach ( $attrs['headers'] as $i => $header ) { … … 73 76 } 74 77 75 $no_reply = apply_filters( 'bbp_subscription_to_email', bbp_get_do_not_reply_address() );76 $dest_emails = is_array( $attrs['to'] ) ? $attrs['to'] : explode( ',', $attrs['to'] );77 78 // Remove the noreply email, it was probably set as the $to address. 78 79 $dest_emails = array_diff( $dest_emails, [ $no_reply ] ); 79 80 80 81 // This shouldn't happen, but if it does, let wp_mail() do it's thing instead. 81 82 // NOTE: We still process if there was only one to/cc/bcc address, to ensure the below custom filter gets run.
Note: See TracChangeset
for help on using the changeset viewer.