WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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:

Description

this issue happened when embed youtube video url in content, which appear " ) " under the video, you can see image below :

http://f.cl.ly/items/1l0b0L2u373o0B360Z0s/youtube_embed_issue_WP_3.8.1.png

it's strange because, this was working fine before, but today happened that, with my custom theme, and default theme also ..

Change History (6)

#1 follow-up: @johnbillion
8 years ago

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?

#2 in reply to: ↑ 1 @mandooox
8 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

Last edited 8 years ago by mandooox (previous) (diff)

#3 @Viper007Bond
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

#4 @SergeyBiryukov
8 years ago

#27379 was marked as a duplicate.

#5 follow-up: @room34
8 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 @mandooox
8 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.

Note: See TracTickets for help on using tickets.