-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removal of instagram providor breaks proxy requests #9331
Comments
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation. |
The bug seems to be gone now, thanks to WordPress/gutenberg#6345 Closing. |
This bug is happening again :( @jeherve should this be reopened? |
Yes, I can reproduce as well right now. Reopening. Here are some steps to reproduce: This was tested with this Instagram URL: To make sure the Shortcodes module is active on your site, you can go to |
@jeherve can confirm: with shortcode embedding from jetpack switched off it works like a charm. |
Fixes #9331 When using the block editor, let's rely on core's Instagram embed method. We don't really need to overwrite it to use our own there.
Note for my reference that this was also reported in #1700941-zen. |
#### Changes proposed in this Pull Request: This updates our custom embed provider to support Instagram TV URLs, just like Core will soon: https://core.trac.wordpress.org/changeset/44486 I also took the opportunity to add some Unit Tests for Instagram, we did not have any before. #### Testing instructions: * Try adding the following URLs to a brand new post, and see that they all get transformed into embeds on publish: ``` A classic IG embed https://www.instagram.com/p/BnMOk_FFsxg/ A TV IG embed https://www.instagram.com/tv/BkQjCfsBIzi/ A profile alternative picture IG embed https://www.instagram.com/jeherve/p/BnMO9vRleEx/ A profile alternative video IG embed https://www.instagram.com/instagram/tv/BkQjCfsBIzi/ An Instagram shortcode [instagram url="http://instagram.com/p/BnMO9vRleEx/"] ``` * I would recommend testing this with the Classic Editor, because Instagram Embeds are currently broken in the block editor (see #9331) #### Proposed changelog entry for your changes: * Instagram: update embed to support Instagram TV URLs Co-authored-by: David Biňovec <david.binovec@gmail.com>
Ran into this today and while waiting on a fix to land, this gist seems like a decent workaround: https://gist.github.com/joemcgill/765c9ed02185c11f7c957bd3ef8bd0ae |
Closing this, since the Instagram provider will be removed from Core soon: |
This is easiest to see inside Gutenberg.
Essentially, the removal of the instagram providor in
jetpack/modules/shortcodes/instagram.php
is causing the instagram matcher to not be present inWP_Embed:get_providor
during oembed proxy REST requests such as/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.instagram.com %2Fp%2FBbba7EYljLv%2F
To reproduce, make sure the instagram shortcode is active in Jetpack ( Not sure how to do that, maybe it's a default?) and try to embed an instagram post into Gutenebrg.
see the related Gutenberg issue: WordPress/gutenberg#3499
The text was updated successfully, but these errors were encountered: