diff --git a/src/wp-mail.php b/src/wp-mail.php index 02635157c5..1d5fbedf03 100644 --- a/src/wp-mail.php +++ b/src/wp-mail.php @@ -213,7 +213,7 @@ for ( $i = 1; $i <= $count; $i++ ) { $post_title = xmlrpc_getposttitle( $content ); - if ( '' === $post_title ) { + if ( '' === trim( $post_title ) ) { $post_title = $subject; }