[wp-trac] [WordPress Trac] #25387: Autoembeds don't work with paragraphs

WordPress Trac noreply at wordpress.org
Thu Mar 19 17:15:46 UTC 2015


#25387: Autoembeds don't work with paragraphs
-------------------------------------+-----------------------------
 Reporter:  Looimaster               |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Embeds                   |     Version:  3.6.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------

Comment (by azaozz):

 Don't forget that pasting a URL and having it auto-embed is a shortcut.
 The "standard" way of doing this is to open the media modal and paste the
 URL on the "Insert from URL" tab. Then it is added to the post content
 wrapped in a `[embed]` shortcode.

 This is the same for the Text editor: if embedding an URL, wrap it in
 [embed] or insert it with the media modal.

 The shortcut that will embed an URL is more of an "advanced user feature"
 has some restrictions, namely the URL has to be pasted in a new paragraph
 or separated by new lines.

 From the tests above, the only user case we should support is when an URL
 is wrapped in <p>. The rest should really be using the shortcode, it works
 perfectly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25387#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list