Changeset 61201 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 11/11/2025 02:34:32 AM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/pluggable.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r61188 r61201 175 175 * instead of PHPMailer's default validator. 176 176 * @since 6.9.0 Added $embeds parameter. 177 * @since 6.9.0 Improved Content-Type header handling for multipart messages. 177 178 * 178 179 * @global PHPMailer\PHPMailer\PHPMailer $phpmailer … … 352 353 $boundary = trim( str_replace( array( 'BOUNDARY=', 'boundary=', '"' ), '', $charset_content ) ); 353 354 $charset = ''; 355 if ( preg_match( '~^multipart/(\S+)~', $content_type, $matches ) ) { 356 $content_type = 'multipart/' . strtolower( $matches[1] ) . '; boundary="' . $boundary . '"'; 357 } 354 358 } 355 359 … … 547 551 } 548 552 } 549 }550 551 if ( false !== stripos( $content_type, 'multipart' ) && ! empty( $boundary ) ) {552 $phpmailer->addCustomHeader( sprintf( 'Content-Type: %s; boundary="%s"', $content_type, $boundary ) );553 553 } 554 554 }
Note: See TracChangeset
for help on using the changeset viewer.