Opened 3 years ago
Closed 2 years ago
#53370 closed enhancement (fixed)
Theme thumbnail/screenshot does not contain version string
Reported by: | codente | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.0 | Priority: | normal |
Severity: | minor | Version: | 5.7.2 |
Component: | Themes | Keywords: | |
Focuses: | Cc: |
Description
As a result, if you change it, it's cached by the browser. I propose adding a version string to make sure it's updated if you update the image
Attachments (2)
Change History (23)
This ticket was mentioned in Slack in #core by chaion07. View the logs.
3 years ago
#4
@
3 years ago
- Keywords commit added
Hello @codente! Thank you for reporting this. This ticket was discussed during a recent Bug-scrub session. Based on the feedback received we think its ready for commit. The patch was also refreshed. Thanks!
Props to @audrasjb & @costdev
#5
@
3 years ago
- Keywords commit removed
Hi there, thanks for the ticket and the patch!
This looks good to me. However, if you search for theme-screenshot
in core, you'll find a few more instances where theme screenshots are displayed. For consistency, I think this should be done for all of them, so the patch needs some more work. Removing the commit
tag for now.
#6
@
3 years ago
- Milestone changed from 5.9 to Future Release
As of yesterday, 5.9 is now in Feature Freeze. Moving this ticket to the next release cycle. But 6.0 is not yet available for selection. Moving it to Future Release. Once 6.0 is available, please feel free to move it into that milestone.
#8
@
3 years ago
- Keywords needs-refresh added
Marking for a refresh, per Sergey's comment, to hopefully gain some attention during this cycle.
This ticket was mentioned in PR #2424 on WordPress/wordpress-develop by audrasjb.
3 years ago
#9
- Keywords needs-refresh removed
Trac ticket: https://core.trac.wordpress.org/ticket/53370
#11
@
3 years ago
- Owner set to audrasjb
- Status changed from new to accepted
Self assigning for final review and commit.
#12
@
3 years ago
- Keywords commit added
I tested the last PR and it successfully adds the version string in each screenshot, on both WP-Admin and the Customizer.
Marking as good for commit
.
3 years ago
#14
Committed in https://core.trac.wordpress.org/changeset/52947
#15
@
3 years ago
- Keywords needs-patch added; has-patch commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
I spotted at least one missed file. Reopening for follow-up fixes.
This ticket was mentioned in PR #2428 on WordPress/wordpress-develop by audrasjb.
3 years ago
#16
- Keywords has-patch added; needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/53370
3 years ago
#18
Committed in https://core.trac.wordpress.org/changeset/52948
#20
@
3 years ago
- Keywords has-patch removed
Do additional items need a version string or is this ticket ready to close?
The only additional location I could find was the theme REST endpoint.
If the version string is required everywhere, then including the hash in a backward compatible fashion in WP_Themes::get_screenshot()
seems a more sensible approach.
Each of the items has-patch
applies to has been committed, so I am removing the keyword to reflect any future work that might be required.
Thanks for this one, @codente! This makes sense to me.
The window to include it in 5.8 has passed, so moving to 5.9.