WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 4 weeks ago

#53934 new defect (bug)

Vimeo embed working in admin and not on post when using private link

Reported by: Trouffman Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.8
Component: Editor Keywords:
Focuses: ui Cc:

Description

Hi,

Issue :
Vimeo Embed link does not appear in the post (not even in the source code of the blog post) when using private link.

Current Behavior :
When copy/pasting a "private video link" from Vimeo into the WordPress Post editor (default one) the embed is done automatically, but does not display / work on the post once published.

Expected behavior :
Copy/paste the Vimeo link to wordpress, emebed is done autoamtically, when publishing video is visible ont he blog page.

How to reproduce :

  • Get a Vimeo "private link" to a video
  • Paste the Private link to a new blog post
  • (WP will Auto embed the vimeo videpo player)
  • publish post
  • Post does not contain the video.
  • If you edit the same blog post, the video is in there.

How to solve (workaround)

Embed the vimeo player as an "embed" link using the "player.vimeo.com/video/VIDEOID".

What is causing the problem ?
From my experience & debugging : This behavior is mostly with Vimeo "private link".
Wordpress will automatically embed even is you copy the private link and it will work in the admin (and if you are connected on your vimeo account). But this will not show up on the page/blog post once published.

Embed expect the following : player.vimeo.com/video/VIDEOID
The private link is : vimeo.com/VIDEOID/RANDOMUNIQUEIDHERE

The vimeo page via private link is providing the info for oembed (json & xml) in its source.

(first time submitting a bug report here. Edit if required.)

Change History (2)

#1 @Trouffman
4 weeks ago

This is still the case.

It looks like the rewritign of the player URL doe not take into account the "key" (extra h=[privatekey]) to allow the private embedding.

When the video is set to be "public" this works without a glitch.

#2 @Trouffman
4 weeks ago

Looking at the oembed JSON :

"html":"<iframe src=\"https:\/\/player.vimeo.com\/video\/IDHERE?h=PKEYHERE&amp;app_id=122963\"

could this be because the ? is not escaped ?

Note: See TracTickets for help on using tickets.