[wp-trac] [WordPress Trac] #42258: Twitter embed link in posts generates an empty paragraph

WordPress Trac noreply at wordpress.org
Wed Oct 18 14:32:40 UTC 2017


#42258: Twitter embed link in posts generates an empty paragraph
--------------------------+-----------------------------
 Reporter:  alexvorn2     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When I look into the post, below the embed tweet I see an empty paragraph,
 when I look inside it, in the source I see a twitter script link: <script
 async src="//platform.twitter.com/widgets.js" charset="utf-8">

 So why it is like that? I think it should not add an empty paragraph after
 a tweet.

 How to replicate:
 1. add a tweet link in the post: eg:
 https://twitter.com/BitsAndChipsEng/status/919845271831531520
 2. preview the post.

 You will get an empty line, but if you will look into the source, you will
 see something like this:

 {{{#!php
 <p><script async="" src="//platform.twitter.com/widgets.js"
 charset="utf-8"></script></p>
 }}}

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


More information about the wp-trac mailing list