Photon: view context used in the block editor, causing media updates to use Photon URLs #24659
Labels
[Feature] Photon
aka "Image CDN". Feature developed in the Image CDN package and shipped in multiple plugins
[Focus] Blocks
Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack
[Focus] Compatibility
Ensuring our products play well with third-parties
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] High
[Type] Bug
When a feature is broken and / or not performing as intended
Impacted plugin
Jetpack
Steps to Reproduce
This can only be reproduced when using the latest version of WordPress. version 6.0.
media
requestsAs you'll see:
view
context, which until WP 6.0 was only used on the frontend as far as I know. I don't know if that's a bug or something that was added on purpose. I could not find a related discussion in the Gutenberg repo about this.view
context, the different media URLs returned are processed by Photon. As a result, when resizing the image, you will be adding a Photon URL to your post content.This causes an issue when resizing the image you've inserted, thus pulling a different media URL into the content.
You can see the issues in the following videos:
View context
https://videopress.com/v/QnOBCMWQ
Photon issue
https://videopress.com/v/8JCSALkF
In the past, we filtered out media requests that used the
edit
context to not use Photon: #10592We could introduce a change and update the matching unit tests to also filter out
view
context requests:That said, before we make such a change, I wanted to open a discussion to understand:
view
requests; doing so would stop folks pulling content from the REST API from using Photon.cc @nosilver4u who let me know about this context change; thank you again!
Other information
WordPress 6.0 Primary issue: #24082
The text was updated successfully, but these errors were encountered: