Skip to content

Photon: Photon links for images inserted in editor when Site Accelerator is active #16035

Closed

Description

@KokkieH

Steps to reproduce the issue

  1. With Site Accelerator disabled, create a new post and upload an image via the image block
  2. Switch to the HTML editor - note the src attribute of the image indicates the WordPress media file URL.
  3. With Site Accelerator enabled, create a new post and upload an image via the image block
  4. Switch to the HTML editor and note the src attribute

What I expected

For the image added while Site Accelerator was active to also show the WordPress media URL.

What happened instead

The image shows the Photon URL in the editor (as opposed to being generated dynamically on the front end when the site loads.

After disabling Site Accelerator/disconnecting Jetpack completely, the src attribute for the image when viewing the post in a browser still shows the Photon URL, rather than the media file URL.

Screenshots
HTML view of images added with Site Accelerator enabled and disabled respectively:
Editor

Browser inspector showing HTML for image with Jetpack completely disabled on the site:
Front end

Reported in https://wordpress.org/support/topic/photon-inserting-https-i0-wp-com-images-in-post-content/

Activity

  1. added
    Bug
    [Feature] Photon
    [Focus] Blocks
    on Jun 2, 2020
  2. added this to the 8.7 milestone on Jun 2, 2020
  3. jeherve commented on Jun 2, 2020

    @jeherve
    Member

    See #10580 (comment) for a potential way around this.

  4. hubertnguyen commented on Jun 2, 2020

    @hubertnguyen

    I noticed this with the new image comparison plugin as well, just a FYI. It probably goes through the same code path .

  5. jeherve commented on Jun 22, 2020

    @jeherve
    Member

    cc @kraftbj Do you think you could take a look at this this week, if you have the bandwidth?

    Thank you!

  6. kraftbj commented on Jun 23, 2020

    @kraftbj
    Contributor

    I can't duplicate this behavior on either with trunk Jetpack with WP 5.4.2 or 5.4.2+Gutenberg 8.3.0. Asking for others to try to reproduce.

  7. kraftbj commented on Jun 23, 2020

    @kraftbj
    Contributor

    Still working on exactly the repo steps. Images of a certain size will trigger it, but not others.

  8. hubertnguyen commented on Jun 23, 2020

    @hubertnguyen

    @kraftbj , I saw your message on Wordpress org. Looks like you're onto it. Let me know you need me to try something. I often use 1000-1500px wide images.
    Perhaps the issue happens with "large" but not "full" images?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bug[Feature] Photon[Focus] Blocks[Pri] BLOCKER

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions