[wp-trac] [WordPress Trac] #55290: Not all image edits are applied to all subsizes
WordPress Trac
noreply at wordpress.org
Wed Aug 17 17:00:26 UTC 2022
#55290: Not all image edits are applied to all subsizes
--------------------------------+------------------------------------------
Reporter: mitogh | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Media | Version: 5.9.1
Severity: normal | Resolution:
Keywords: has-patch needs- | Focuses: administration, performance
testing |
--------------------------------+------------------------------------------
Comment (by alaca):
The provided patch does not fix the issue with missing image, in this case
for {{{medium_large}}} size.
As you already wrote, @mitogh, the new image will not be created when the
image dimensions are smaller than the image size, e.g. this will happen
when rotating the image to a vertical position.
However, I still found this patch useful as it adds a few small
improvements.
Replacing {{{wp_get_additional_image_sizes}}} with the
{{{wp_get_registered_image_subsizes}}} function returns a more accurate
list of defined image sizes, and casting options settings to an integer is
what was missing in the first place.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55290#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list