[wp-trac] [WordPress Trac] #35030: Responsive Images: wrong source selected in iOS8
WordPress Trac
noreply at wordpress.org
Sun Mar 13 19:15:47 UTC 2016
#35030: Responsive Images: wrong source selected in iOS8
--------------------------------------+------------------------
Reporter: tonysandwich | Owner: joemcgill
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.5
Component: Media | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------
Changes (by jaspermdegroot):
* keywords: needs-patch => has-patch has-unit-tests
Comment:
In 35030.patch:
- Made sure that `wp_calculate_image_srcset()` puts the `src` image at
first position in the `srcset`.
- Made the loop in `wp_calculate_image_srcset()` only check once if the
current image is the `src` image, instead of twice.
- Updated unit tests: Expected `srcset`s now have the `src` image at the
first position.
- Added a unit test to test if the `src` image is at the first position in
the `srcset`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35030#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list