Opened 12 years ago
Closed 12 years ago
#28782 closed enhancement (duplicate)
Attachment file name changed
| Reported by: | p_j_albuquerque | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | 3.9.1 | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Change Line: 487 to 490