[wp-trac] [WordPress Trac] #43046: `has_image_size()` returns false for Core image sizes
WordPress Trac
noreply at wordpress.org
Mon Jan 8 21:37:32 UTC 2018
#43046: `has_image_size()` returns false for Core image sizes
--------------------------+-----------------------------
Reporter: desrosj | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.9
Severity: minor | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
`has_image_size()` returns `false` (does not exist) for the four core
image sizes (thumbnail, medium, medium_large, large).
`get_intermediate_image_sizes()` returns these core image sizes merged
with custom registered sizes through `add_image_size()`.
`has_image_size()` should return true for the core image sizes, or the
function docs should note that the core image sizes are not checked in the
function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43046>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list