[wp-trac] [WordPress Trac] #49853: Sending post via email results in “(no title)” for the post title

WordPress Trac noreply at wordpress.org
Wed Apr 8 18:43:20 UTC 2020


#49853: Sending post via email results in “(no title)” for the post title
----------------------------+--------------------
 Reporter:  SergeyBiryukov  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  5.4.1
Component:  Mail            |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+--------------------
 Reported by @markrh in [https://wordpress.org/support/topic/5-4-sending-
 post-via-email-results-in-no-title-for-the-post-title/ 5.4: Sending Post
 via Email Results in “(no title)” for the post title] on the forums:

 > Once a week I send an email to my blog to go into a category I have set
 for them. Anyway, starting with 5.4, the post titles were all “(no
 title)”. I did a comparison between wp-mail.php in 5.4 and 5.3. At line
 216 changed:
 > {{{
 > if ( '' === $post_title ) {
 >       $post_title = $subject;
 > }
 > }}}
 > To:
 > {{{
 > if ( '' == $post_title ) {
 >       $post_title = $subject;
 > }
 > }}}
 > Now, the posts get the title from the email’s subject once again. Not
 sure if this is a bug or emails need to be structured differently now.

 Introduced in [47054] / #48965.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49853>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list