WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #35045, comment 19


Ignore:
Timestamp:
12/16/2015 04:12:35 AM (5 years ago)
Author:
joemcgill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35045, comment 19

    v1 v2  
    33I was thinking about this again earlier today while discussion #35102. Moving this logic to `wp_calculate_image_srcset()` streamlines the code a little bit and has the added benefit allowing the filter to still be reachable by plugin authors who have rewritten image URLs for whatever reason (e.g., CDNs, etc.).
    44
    5 [https://core.trac.wordpress.org/attachment/ticket/35045/35045.4.diff 35045.4.diff] is a first pass at what this would look like if we moved the logic from [https://core.trac.wordpress.org/attachment/ticket/35045/35045.2.diff 35045.2.diff] (et. al) into `wp_calculate_image_srcset()`.
     5[https://core.trac.wordpress.org/attachment/ticket/35045/35045.4.diff 35045.4.diff] is a first pass at what this would look like if we moved the logic from [https://core.trac.wordpress.org/attachment/ticket/35045/35045.2.diff 35045.2.diff] (et al.) into `wp_calculate_image_srcset()`.