[wp-trac] [WordPress Trac] #34430: Improve the performance of wp_make_content_images_responsive()
WordPress Trac
noreply at wordpress.org
Wed Oct 28 05:40:06 UTC 2015
#34430: Improve the performance of wp_make_content_images_responsive()
-------------------------------------+------------------------
Reporter: joemcgill | Owner: joemcgill
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------
Comment (by azaozz):
In [changeset:"35412"]:
{{{
#!CommitTicketReference repository="" revision="35412"
Responsive images:
- Introduce `wp_calculate_image_srcset()` that replaces
`wp_get_attachment_image_srcset_array()` and is used as lower level
function for retrieving the srcset data as array.
- Use the new function when generating `srcset` and `sizes` on the front-
end. This is faster as no (other) image API functions are used.
- Change the `wp_get_attachment_image_srcset()`. Now it is meant for use
in templates and is no longer used in core.
- A few logic fixes and improvements.
- Some names changed to be (hopefully) more descriptive.
- Fixed/updated tests.
Props joemcgill, jaspermdegroot, azaozz.
See #34430.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34430#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list