Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #17626, comment 33


Ignore:
Timestamp:
01/27/2015 12:28:46 AM (10 years ago)
Author:
joemcgill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17626, comment 33

    v2 v3  
    33Thanks for the clarification.
    44
    5 In [attachment:17262.3.diff] I've added new unit tests for the cases you bring up and they are currently passing with the changes to the function as is.
     5In [attachment: 17262.3.diff] I've added new unit tests for the cases you bring up and they are currently passing with the changes to the function as is.
    66
    77To explain how this is working: when you add a custom image size with a zero value like `add_image_size('my_size, 300, 0)`, an intermediate size will be added to the attachment metadata for uploaded images with the height and width attributes that have been calculated after it was resized. For example, an image that is 600x400 will have an intermediate size  with an array that looks like this: