-
Notifications
You must be signed in to change notification settings - Fork 800
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
Shortcode: Fix the youtube url cannot be embedded due to the trailing question mark of the youtube id #39309
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
…question mark of the youtube id
2f7b0b7
to
6f2c455
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests well for me with that specific video. What do you think about adding tests for this, to highlight why this is needed and ensure it doesn't break current behavior?
Sure! I'll add tests tomorrow, thank you! |
projects/plugins/jetpack/tests/php/modules/shortcodes/test-class.youtube.php
Outdated
Show resolved
Hide resolved
… question mark of the youtube id (#39309) * Shortcode: Fix the youtube url cannot be embeded due to the trailing question mark of the youtube id * changelog * Add tests * Update projects/plugins/jetpack/tests/php/modules/shortcodes/test-class.youtube.php --------- Co-authored-by: Jeremy Herve <[email protected]>
Fixes 8674608-zd-a8c. See p1725860629793219/1725499365.595119-slack-CRWCHQGUB fo more details.
Proposed changes:
https://www.youtube.com/oembed?format=json&url=<youtube_url>
endpoint but now the YouTube URL with the trailing question mark doesn't work and the endpoint returns 400 so that the URL cannot be embedded correctly. But it might also related to the following changesOther information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: