-
Notifications
You must be signed in to change notification settings - Fork 800
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
Photon: Ignore data-width and data-height attributes #13961
Conversation
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: December 3, 2019. |
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.
Do you think we could add some unit tests to tests/php/test_class.jetpack_photon.php
to cover this new use-case?
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.
Taking a second look at the screenshot we may also want to look into that |
5de55b1
to
7211785
Compare
Seems to be expected when Line 890 in 4f591d0
|
Done in 87dc0f9. Sorry for the delay! |
This one is ready for another look @jeherve let us know if we need additional changes |
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 and tests well. Merging.
* 8.0 Release: running changelog * Changelog: add #13921 * Changelog: add #13980 * Changelog: add #13905 * Changelog: add #13971 * Changelog: add #13984 * Changelog: add #14009 * Changelog: add #13620 * Remove things that will ship in 7.9.1 * Changelog: add 7.9.1 release (#14044) * Changelog: add base for 7.9.1 release * Update release date and post link * Changelog: add #14066 * Update changelog for 7.9.1 * Changelog: add #13405 * Changelog: add #13841 * Changelog: add #13924 * Changelog: add #13986 * Changelog: add #14010, #14028, #14053, #14055. * Changelog: add #14054 * Changelog: add #14031 * Changelog: add #14039 * Changelog: add #14050 * Changelog: add #14070 * Changelog: add #14082 * Changelog: add #14084 * Changelog: add #14111 * Changelog: add #13961 * Changelog: add #14047 * Changelog: add #14091 * Changelog: add #14108 * Changelog: add #14121
Fixes #Automattic/wp-calypso#37193
Changes proposed in this Pull Request:
Ensures that only
width
andheight
attributes are taken into account by Photon when resizing an image.Previously it was targeting any
*width
/*height
attribute (such asdata-weight
anddata-height
) that are not intended for setting an image size (see Automattic/wp-calypso#37193 (comment)).Is this a new feature or does it add/remove features to an existing part of Jetpack?
Bugfix
Testing instructions:
data-width
attribute towidth
and update the post:Proposed changelog entry for your changes:
Photon: Ignore data-width and data-height attributes