Allow the pdf fallback_intermediate_image_sizes filter to process add_image_size() sizes.
|Reported by:||gitlost||Owned by:||joemcgill|
|Component:||Media||Keywords:||has-patch has-unit-tests fixed-major|
The fallback_intermediate_image_sizes filter added in #38594 only works for default get_option sizes and not user-defined add_image_size() sizes, unlike the intermediate_image_sizes_advanced filter. It'd be more useful if it could work with user-defined sizes also. My particular use case is adding a plugin-defined list thumbnail size, smaller than the default thumbnail size.
The following patch just copies the (before) logic used for intermediate_image_sizes_advanced to the (after) logic of fallback_intermediate_image_sizes. It includes a unittest.
Change History (10)
5 months ago
- Keywords has-patch has-unit-tests added
- Milestone changed from Awaiting Review to 4.7.1
- Owner set to joemcgill
- Status changed from new to accepted
4 months ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened