Ticket #48965: wp-mail.php.patch
File wp-mail.php.patch, 1.1 KB (added by , 5 years ago) |
---|
-
wp-mail.php
101 101 $content_transfer_encoding = explode( ';', $content_transfer_encoding ); 102 102 $content_transfer_encoding = $content_transfer_encoding[0]; 103 103 } 104 if ( ( $content_type == 'multipart/alternative' ) && ( false !== strpos( $line, 'boundary="' ) ) && ( ''== $boundary ) ) {104 if ( ( 'multipart/alternative' === $content_type ) && ( false !== strpos( $line, 'boundary="' ) ) && ( '' === $boundary ) ) { 105 105 $boundary = trim( $line ); 106 106 $boundary = explode( '"', $boundary ); 107 107 $boundary = $boundary[1]; … … 162 162 163 163 $subject = trim( $subject ); 164 164 165 if ( $content_type == 'multipart/alternative') {165 if ( 'multipart/alternative' === $content_type ) { 166 166 $content = explode( '--' . $boundary, $content ); 167 167 $content = $content[2]; 168 168 … … 212 212 213 213 $post_title = xmlrpc_getposttitle( $content ); 214 214 215 if ( $post_title == '') {215 if ( '' === $post_title ) { 216 216 $post_title = $subject; 217 217 } 218 218