[wp-trac] [WordPress Trac] #18947: get_intermediate_image_sizes() should also contain width/height/crop values as sub array
WordPress Trac
noreply at wordpress.org
Wed Jul 30 09:36:37 UTC 2025
#18947: get_intermediate_image_sizes() should also contain width/height/crop values
as sub array
------------------------------------------+-----------------------------
Reporter: F J Kaiser | Owner: (none)
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Media | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback close | Focuses:
------------------------------------------+-----------------------------
Changes (by callumbw95):
* keywords: has-patch dev-feedback => has-patch dev-feedback close
Comment:
Hey Everyone,
I have just done some digging, and it looks like we got a new function to
achieve the originally requested functionality in 5.3.0. The function is
`wp_get_registered_image_subsizes()` and returns an array of image sizes
with the size name as the `key`, and the `width`, `height`, and `crop`. As
this function aligns with the original request and the various patches
throughout this the comments, I suggest that we move to close this ticket.
As of such I have marked this ticket with the `close` tag, but please feel
free to remove this if you believe this is in error. 😃
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18947#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list