Changeset 55030 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 01/05/2023 10:47:06 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r54952 r55030 518 518 519 519 if ( ! empty( $attachments ) ) { 520 foreach ( $attachments as $attachment ) { 520 foreach ( $attachments as $filename => $attachment ) { 521 $filename = is_string( $filename ) ? $filename : ''; 522 521 523 try { 522 $phpmailer->addAttachment( $attachment );524 $phpmailer->addAttachment( $attachment, $filename ); 523 525 } catch ( PHPMailer\PHPMailer\Exception $e ) { 524 526 continue;
Note: See TracChangeset
for help on using the changeset viewer.