[wp-trac] [WordPress Trac] #39231: Allow the pdf fallback_intermediate_image_sizes filter to process add_image_size() sizes.
WordPress Trac
noreply at wordpress.org
Sat Dec 10 23:09:01 UTC 2016
#39231: Allow the pdf fallback_intermediate_image_sizes filter to process
add_image_size() sizes.
--------------------------+-----------------------------
Reporter: gitlost | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.7
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39231>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list