-
Notifications
You must be signed in to change notification settings - Fork 812
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
Slideshow: do not render markup when user doesn't select any images #16231
Slideshow: do not render markup when user doesn't select any images #16231
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
Thank you for the great PR description! When this PR is ready for review, please apply the E2E results is available here (for debugging purposes): https://jetpack-e2e-dashboard.herokuapp.com/pr-16231 Scheduled Jetpack release: July 7, 2020. |
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.
Thanks for swiftly addressing the feedback!
I tested as per testing instructions and can confirm that the Slideshow isn't rendered anymore when no images are selected. This is true for both the normal and AMP view.
LGTM 👍
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 tests well for me, it should be good to merge! 🚢
r209584-wpcom |
This PR resolves #15273, where adding a slideshow block, without selecting any image, results to obsolete markup in the frontend. Especially, in the case of AMP rendering there was an extra visible markup.
Changes proposed in this Pull Request:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
No
Testing instructions:
/amp
to the URL to inspect how AMP rendersBefore

After

Before AMP

After AMP

Proposed changelog entry for your changes:
Notices
The above changes will work for:
The above changes will not work for: