Changes between Version 2 and Version 3 of Ticket #17626, comment 33
- Timestamp:
- 01/27/2015 12:28:46 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17626, comment 33
v2 v3 3 3 Thanks for the clarification. 4 4 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.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. 6 6 7 7 To 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: