Automattic / Automattic/jetpack

Tiled Gallery Block: Images don't follow the "jetpack_photon_skip_image" filter

Open
#42,961 2 comments 0 reactions 0 assignees View on GitHub
[Experiment] AI labels added [Feature] Photon [Feature] Tiled Gallery [Plugin] Jetpack [Pri] Low [Status] Auto-allocated Enhancement Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Quick summary

The Tiled Gallery Block always uses Proton CDN images, and there is no way to disable this. While the `jetpack_photon_skip_image` filter can be used to disable Photon for individual images, it is not applied in the Tiled Gallery Block.

This causes issues for individual images that need to be served directly from the site, for example, protected images.

### Steps to reproduce

1. Add the filter to skip all photon images `add_filter( 'jetpack_photon_skip_image', '__return_true' );` (easier for testing, in a real case scenario we won't skip all images).
2. Add the Tiled Gallery Block.
3. Images are served through Photon.

### Site owner impact

Fewer than 20% of the total website/platform users

### Severity

Minor

### What other impact(s) does this issue have?

_No response_

### If a workaround is available, please outline it here.

_No response_

### Platform (Simple and/or Atomic)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the filter behavior with the Tiled Gallery Block and trace how its images are generated and routed through Proton CDN. Done means the jetpack_photon_skip_image filter is honored for affected images, while images that do not skip Photon continue using the CDN.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.