Closed cameronterry closed 3 years ago
Holding this issue as there could be problems with: https://github.com/WordPress/WordPress/blob/270f2011f8ec7265c3f4ddce39c77ef5b496ed1c/wp-includes/default-filters.php#L172.
Specifically thinking some dynamic-ish Gutenberg blocks might cause a problem here.
This PR fixes an issue where oEmbeds are some times not handled properly because the URL is jumping between the admin domain and the primary domain.
The issue is caused by the lateness of hook onto
the_content
filter, previously set to50
. However, the auto-embed attempts to process the URL onthe_content
/ priority of8
(Code Reference). In turn, this caused issues with the oEmbed as it would attempt to work with an unmapped domain rather than a mapped one.