Skip to content

Allow Jetpack CDN to Service Images #1169

@efuller

Description

@efuller

Description

Currently, if a site is using Jetpack boost to serve up images, when a cover image is set to be used, the image is served from the origin, not the Jetpack boost CDN.

There is code in place that strips out the Jetpack CDN URL. This code should be removed and we should use what WordPress gives us natively.

Use Case

When a user sets an Apple News cover image it is served with the correct URL. If Jetpack Boost is being used, it should serve the image from the CDN

How to Test

  • Create a post with a featured image and an image in the content. Download the JSON and verify that the image is being served from the Jetpack CDN
  • Create a post without a featured image but has a cover image set. Verify that the cover image is being served from the Jetpack CDN
  • Create a post with a cover image and add the same image to the post content. Verify that when published the image is deduped and does not display in the content.

Metadata

Metadata

Labels

enhancementNew feature or requestphpRequires understanding PHP

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions