[wp-trac] [WordPress Trac] #32359: Add oEmbed support for WordPress.com
WordPress Trac
noreply at wordpress.org
Thu Jun 4 16:26:57 UTC 2015
#32359: Add oEmbed support for WordPress.com
-------------------------------------+------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.3
Component: Embeds | Version:
Severity: normal | Resolution:
Keywords: needs-patch 2nd-opinion | Focuses:
-------------------------------------+------------------
Comment (by stephdau):
Note: the oEmbed payload received from the API allows for more than just
the links showcased in the screenshots. That's just core's most basic
handling. It returns HTML, a `thumbnail_url`, etc.
EG:
* https://tellyworthless.wordpress.com/2015/05/29/jetpag-swag-at-wcbne/
* https://public-
api.wordpress.com/oembed/1.0?for=WP&maxwidth=660&maxheight=990&url=https%3A%2F%2Ftellyworthless.wordpress.com%2F2015%2F05%2F29
%2Fjetpag-swag-at-wcbne%2F&format=json
*
`{"version":"1.0","provider_name":"Snapshots","provider_url":"http:\/\/tellyworthless.wordpress.com","author_name":"Alex","author_url":"https:\/\/tellyworthless.wordpress.com\/author\/tellyworth\/","title":"Jetpack
swag at #wcbne","type":"link","html":"<p> <a
href=\"https:\/\/tellyworthless.files.wordpress.com\/2015\/05\/img_4007.jpg\"><img
src=\"https:\/\/tellyworthless.files.wordpress.com\/2015\/05\/img_4007.jpg\"
alt=\"\"><\/a> <\/p>\n","thumbnail_url":"https:\/\/i0.wp.com\/tellyworthless.files.wordpress.com\/2015\/05\/img_4007-0.jpg?fit=660%2C990","thumbnail_height":494,"thumbnail_width":660}`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32359#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list