[wp-trac] [WordPress Trac] #24456: Add src attribute to embed shortcode

WordPress Trac noreply at wordpress.org
Fri May 23 18:05:25 UTC 2014


#24456: Add src attribute to embed shortcode
---------------------------+-----------------------------
 Reporter:  aaroncampbell  |       Owner:  wonderboymusic
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.0
Component:  Embeds         |     Version:
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28559"]:
 {{{
 #!CommitTicketReference repository="" revision="28559"
 Read the `src` attribute for the `[embed]` shortcode if the shortcode's
 body is empty.

 These work:
 `[embed src="https://www.youtube.com/watch?v=ZqD-LPOWIT0"]`
 `[embed src="https://www.youtube.com/watch?v=ZqD-LPOWIT0"][/embed]`

 If you do:
 `[embed src="https://www.youtube.com/watch?v=ZqD-LPOWIT0"]http://any-
 other-url.com[/embed]`

 ... "http://any-other-url.com" will be the URL that is parsed.

 Props kovshenin, aaroncampbell for making initial patches.
 Fixes #24456.
 }}}

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


More information about the wp-trac mailing list