-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Themes: Fix theme url to include the correct image resized url #15060
Conversation
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
You can test the changes on this Pull Request by downloading the APKs: |
Matching iOS PR wordpress-mobile/WordPress-iOS#16914 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Thanks for porting this over @antonis.
I added a release note for @enejb's PR I'm not sure if you'll want to copy that here or not.
Thank you for the review Chip 🙏
That's a good idea. I've copied the release note with e0d1b56 |
This PR fixes the URL that we genetate to display the theme screenshots.
Before: https://i2.wp.com/s2.wp.com/wp-content/themes/pub/blank-canvas/screenshot.png?ssl=1?w=409
After: https://i2.wp.com/s2.wp.com/wp-content/themes/pub/blank-canvas/screenshot.png?ssl=1&w=409
The fix should download smaller images for each of the themes saving bandwidth and mobile data.
This issue was discoverd while trying to clear the screenshot image cache for the blank-canvas theme.
To test:
Navigate to the theme selection screen for a .com site. Notice that the screenshots show up as expected.
.org sites do not have the theme selection as an option.
Navigate to an atomic and jetpack site notice that the themes show up as expected.
Regression Notes
Potential unintended areas of impact
None
What I did to test those areas of impact (or what existing automated tests I relied on)
N/A
What automated tests I added (or what prevented me from doing so)
Adding a test for the code change would require changing the architecture of the specific part of the code. The effort needed for this might not be justified by the task at hand.
PR submission checklist:
RELEASE-NOTES.txt
if necessary.