Make WordPress Core

Opened 8 years ago

Closed 5 years ago

#37552 closed enhancement (wontfix)

Youtube Oembed ignores parameter(s)

Reported by: deas0815's profile deas0815 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.3
Component: Embeds Keywords:
Focuses: Cc:


Parameters (such as rel=0) don't propagate to rendered HTML.

I expect a youtube URL such as

in the content do render a video with related video display disabled. However, it displays related videos since rel=0 does not propagate.

Change History (2)

#1 @swissspidy
8 years ago

  • Keywords close added
  • Type changed from defect (bug) to enhancement

Hey there,

Thanks for your report and welcome to Trac!

YouTube seems to support the rel parameter in the resulting iframe, but ignores it at the oEmbed endpoint for some reason. So that's a YouTube issue. There are plenty of other parameters YouTube ignores with oEmbed (iv_load_policy, showinfo, vq, etc.).

We would have to manually parse the URL and change the embed code to include those, which is hacky at best (the embed code can change any day). Thus, I would say this is plugin territory. Here's one plugin you can try:

Related: #31920, although there YouTube supports the t parameter.

#2 @desrosj
5 years ago

  • Keywords close removed
  • Resolution set to wontfix
  • Status changed from new to closed

Closing this out per @swissspidy's recommendation.

Note: See TracTickets for help on using tickets.