[wp-trac] [WordPress Trac] #34354: Embeds endpoint not working after switching permalinks
WordPress Trac
noreply at wordpress.org
Mon Oct 19 12:35:43 UTC 2015
#34354: Embeds endpoint not working after switching permalinks
--------------------------+------------------------------
Reporter: pbearne | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by swissspidy):
> I just set the permalinks back to the default /?p=1219 format and the
iframes is still pointing to the /eb/embed/ URL so we get the fall
through.
That's because oEmbed responses ( the `<iframe>` embed code) are cached.
WordPress doesn't know if an embed code is for your own site and therefore
can't change it. Besides that, none of your pretty permalinks will work
when you switch back to ugly permalinks. That is not limited to embeds.
Since oEmbed responses are cached, invalid responses won't suddenly begin
to work. You'd need to clear the oEmbed cache during development, e.g. by
using `WP_Embed::delete_oembed_caches()` or by deleting the rows manually
from postmeta tables.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34354#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list