Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #34945, comment 39


Ignore:
Timestamp:
01/05/2016 12:59:39 AM (9 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34945, comment 39

    initial v1  
    11I am 50/50 on this for 4.4.x. On one hand it would have been nice to match the code in `wp_get_attachment_url()`. In practice part of `wp_calculate_image_srcset()` is quite similar to `wp_get_attachment_url()` but faster and gets the URLs for all image sizes.
    22
    3 On the other hand sites that need to switch between http and https or support both schemes already have means to correct these URLs (`wp_calculate_image_srcset` or another `the_content` filter).
     3On the other hand sites that need to switch between http and https or support both schemes already have means to correct these URLs (`wp_calculate_image_srcset` or another `the_content` filter with priority > 10).