[wp-trac] [WordPress Trac] #27563: Embeds: Instagram image links to videos - do not show if content_width is bigger than 612px
WordPress Trac
noreply at wordpress.org
Sun Mar 30 14:40:23 UTC 2014
#27563: Embeds: Instagram image links to videos - do not show if content_width is
bigger than 612px
--------------------------+------------------------------
Reporter: alexvorn2 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by jesin):
Problem is on Instagram's end it is not specific to videos but also
affects images.
The URL in this JSON output displays an image.
{{{
curl -s 'http://api.instagram.com/oembed?url=http://instagram.com/p
/eoWiWak-Tf/&maxwidth=612' | python -m json.tool
{
"author_id": 30906272,
"author_name": "kaushikpanchal",
"author_url": "http://instagram.com/kaushikpanchal",
"height": 612,
"media_id": "551790071906559199_30906272",
"provider_name": "Instagram",
"provider_url": "http://instagram.com/",
"title": "#mumbai #local",
"type": "photo",
"url":
"http://distilleryimage7.ak.instagram.com/85bee01a24d511e3a17a22000a1fd129_7.jpg",
"version": "1.0",
"width": 612
}
}}}
The URL in this output returns a 403 error.
{{{
curl -s 'http://api.instagram.com/oembed?url=http://instagram.com/p
/eoWiWak-Tf/&maxwidth=613' | python -m json.tool
{
"author_id": 30906272,
"author_name": "kaushikpanchal",
"author_url": "http://instagram.com/kaushikpanchal",
"height": 640,
"media_id": "551790071906559199_30906272",
"provider_name": "Instagram",
"provider_url": "http://instagram.com/",
"title": "#mumbai #local",
"type": "photo",
"url":
"http://distilleryimage7.ak.instagram.com/85bee01a24d511e3a17a22000a1fd129_8.jpg",
"version": "1.0",
"width": 640
}
}}}
Setting a `$content_width` more than 640 returns a direct link to the
video.
{{{
curl -s 'http://api.instagram.com/oembed?url=http://instagram.com/p
/eoWiWak-Tf/&maxwidth=641' | python -m json.tool
{
"author_id": 30906272,
"author_name": "kaushikpanchal",
"author_url": "http://instagram.com/kaushikpanchal",
"height": 640,
"media_id": "551790071906559199_30906272",
"provider_name": "Instagram",
"provider_url": "http://instagram.com/",
"title": "#mumbai #local",
"type": "photo",
"url":
"http://distilleryvesper7-19.ak.instagram.com/85bee01a24d511e3a17a22000a1fd129_101.mp4",
"version": "1.0",
"width": 640
}
}}}
But WordPress places this link inside the `<img />` tag.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27563#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list