#27361 closed defect (bug) (invalid)
issue when embed youtube video in content
Reported by: | mandooox | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8.1 |
Component: | Embeds | Keywords: | |
Focuses: | Cc: |
Change History (6)
#2
in reply to:
↑ 1
@
11 years ago
Replying to johnbillion:
Interesting. YouTube's oEmbed response is currently returning a trailing closing bracket after the closing
</iframe>
.
Not sure that we can do anything about this except alert someone at YouTube. Anyone have any contacts there?
yes you're right, the problem come from youtube embed, which if you open any video and click on [ embed ] button you will found " ) " after closing iframe ..
i sent feedback to youtube team, so you can close this ticket now.
thanks
#3
@
11 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
#5
follow-up:
↓ 6
@
11 years ago
Until there's a fix, here's a workaround you can put into functions.php:
function embed_fix_stray_parens($content) { return str_replace('</iframe>)','</iframe>',$content); } add_filter('the_content','embed_fix_stray_parens');
#6
in reply to:
↑ 5
@
11 years ago
Replying to room34:
Until there's a fix, here's a workaround you can put into functions.php:
function embed_fix_stray_parens($content) { return str_replace('</iframe>)','</iframe>',$content); } add_filter('the_content','embed_fix_stray_parens');
or this method also : http://stackoverflow.com/a/22349242/1647434 / working fine with me.
Interesting. YouTube's oEmbed response is currently returning a trailing closing bracket after the closing
</iframe>
.Not sure that we can do anything about this except alert someone at YouTube. Anyone have any contacts there?