[wp-trac] [WordPress Trac] #40758: Wordpress supporting oembed standards ?

WordPress Trac noreply at wordpress.org
Sun May 14 11:14:07 UTC 2017


#40758: Wordpress supporting oembed standards ?
-------------------------------+------------------------------
 Reporter:  Arena94            |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Embeds             |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by ocean90):

 * keywords:   => reporter-feedback
 * version:  trunk =>


Comment:

 Hello @Arena94, can you elaborate a bit more on this one? Do you mean that
 WordPress should have a `/oembed` endpoint? Because that's not really a
 standard. It's all about the [http://oembed.com/#section4 discovery] part.

 WordPress automatically adds the required link tags to the header so you
 should see something like this on `http://mysite.tld/?p=172`:

 {{{
 <link rel="alternate" type="application/json+oembed"
 href="http://mysite.tld/wp-
 json/oembed/1.0/embed?url=http%3A%2F%2Fmysite.tld%2F%3Fp%3D172" />
 <link rel="alternate" type="text/xml+oembed" href="http://mysite.tld/wp-
 json/oembed/1.0/embed?url=http%3A%2F%2Fmysite.tld%2F%3Fp%3D172&format=xml"
 />
 }}}

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


More information about the wp-trac mailing list