[wp-trac] [WordPress Trac] #39583: Add a new function for images: "get_image_size()"
WordPress Trac
noreply at wordpress.org
Sat Jan 14 05:21:28 UTC 2017
#39583: Add a new function for images: "get_image_size()"
-----------------------------+-----------------------------
Reporter: alexvorn2 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Keywords:
Focuses: template |
-----------------------------+-----------------------------
We have '''add_image_size()''' function but we don't have get_image_size()
Why we need it? So we can know what size in pixels for the specific
fetured image settings.
As we know when we can add a featured images settings with specific size
in a new theme, for example:
add_image_size( 'featured-small', 800 );
(so we set 800 pixels for a featured-small image)
But when we want later to find this size we can't so we need a new
function
get_image_size( 'featured-small' ) that will return the size of 800 so we
can know that to do next.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39583>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list