[wp-trac] [WordPress Trac] #29857: Instagram oEmbeds with Emoji only content break embeds
WordPress Trac
noreply at wordpress.org
Sat Oct 4 18:49:35 UTC 2014
#29857: Instagram oEmbeds with Emoji only content break embeds
--------------------------+------------------------
Reporter: Ipstenu | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Embeds | Version:
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
There's nothing wrong with the
[http://api.instagram.com/oembed?url=http://instagram.com/p/tnZ6DfBjly/
code returned by Instagram]:
{{{
{"provider_url":"http:\/\/instagram.com\/","media_id":"821739397652560242_201355397","title":"\ud83d\udc40\ud83d\udc40\ud83d\udc40","url":"http:\/\/photos-a.ak.instagram.com
\/hphotos-ak-
xaf1\/10683883_355903761240624_2147231606_n.jpg","author_name":"snookinic","height":640,"width":640,"version":"1.0","author_url":"http:\/\/instagram.com\/snookinic","author_id":201355397,"type":"photo","provider_name":"Instagram"}
}}}
The issue is that the output stops at the `alt` attribute, leaving an
unclosed quote:
{{{
<a href="http://instagram.com/p/tnZ6DfBjly/"><img
src="http://photos-a.ak.instagram.com/hphotos-ak-
xaf1/10683883_355903761240624_2147231606_a.jpg" alt="
}}}
And the end result gets mangled by `wptexturize()`:
{{{
<a href="http://instagram.com/p/tnZ6DfBjly/"><img
src=»http://photos-a.ak.instagram.com/hphotos-ak-
xaf1/10683883_355903761240624_2147231606_a.jpg» alt=»
}}}
It's the same issue as in #27961. The [comment:3:ticket:27961 workaround]
suggested there works here too.
Closing as a duplicate of #21212, for the same reason as in #27961.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29857#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list