Embed: Update oEmbed regex for ReverbNation to support legacy subdomain - #13485
Embed: Update oEmbed regex for ReverbNation to support legacy subdomain#13485yogeshbhutkar wants to merge 1 commit into
Conversation
* Adjusted the pattern to match both 'legacy' and 'www' subdomains for improved compatibility with ReverbNation's oEmbed service.
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Trac ticket: https://core.trac.wordpress.org/ticket/66079
What, Why, and How?
ReverbNation moved their site and oEmbed API to
legacy.reverbnation.com. The oldwwwendpoint 404s and never redirects, so artist and song URLs stop embedding with the old URL.wwwpages still redirect tolegacy, however, our matcher only allowedwww, so a pastedlegacylink never used the sanctioned provider. Legacy URLs didn't match the provider array, so they fell through to discovery via the page’soEmbed <link>tags.This PR updates the provider row: point the endpoint at
legacy.reverbnation.com/oembed, and match bothwwwandlegacyso either hostname uses that API as a provider instead of discovery.Screencast
screencast.mov
Use of AI Tools
AI assistance: Yes
Tool(s): Codex
Model(s): GPT-6 Astra
Used for: Validating the regex and running discovery on oEmbed endpoints for artists, songs, albums, and collections.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.