Opened 10 years ago
Closed 10 years ago
#28782 closed enhancement (duplicate)
Attachment file name changed
Reported by: | p_j_albuquerque | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.9.1 |
Component: | Keywords: | ||
Focuses: | Cc: |
Description (last modified by )
At the moment WordPress is unable to send an attached file with a default name.
wp-includes\pluggable.php
Current
Line: 483
if ( !empty( $attachments ) ) { foreach ( $attachments as $attachment ) { try { $phpmailer->AddAttachment($attachment); } catch ( phpmailerException $e ) { continue; } } }
Change
Line: 483
if ( !empty( $attachments ) ) { foreach ( $attachments as $attachment ) { try { if(is_array($attachment)){ $phpmailer->AddAttachment($attachment[archive], $attachment[name]); }else{ $phpmailer->AddAttachment($attachment); } } catch ( phpmailerException $e ) { continue; } } }
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Change Line: 487 to 490