Automattic / Automattic/jetpack
Photon: filter header_image()
Open
[Feature] Photon
[Pri] Low
Enhancement
Good For Community
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
#### Steps to reproduce
1. In your classic theme, edit the `header.php` file to add ``.
2. Go to Jetpack > Settings Performance
3. Enable the image CDN.
4. Notice that the image does not get served via Photon.
`header_image()` can be filtered via the `get_header_image` filter. It would be nice to pass that through Photon.
Contributor guide
Research direction
Start with the classic theme's header.php usage of header_image(), then trace the get_header_image filter and Jetpack's Photon image CDN path. Verify the filtered header image is served through Photon when the image CDN is enabled, using the reproduction steps as the completion check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100