[wp-trac] [WordPress Trac] #43524: Add another default image size
WordPress Trac
noreply at wordpress.org
Mon Aug 26 00:00:52 UTC 2019
#43524: Add another default image size
-----------------------------------+------------------------
Reporter: azaozz | Owner: joemcgill
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.3
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------
Changes (by azaozz):
* keywords: needs-patch => has-patch 2nd-opinion
Comment:
In 43524.2.patch: Add two more "default" image sizes. These sizes are
added to the `$_wp_additional_image_sizes` array and not stored in
options. They are not meant to be changeable/settable by the users.
The new sizes are meant to enhance the way WordPress displays images on
the front-end on larger, high-density devices. They make it possible to
generate more suitable `srcset` and `sizes` attributes when the users
upload large images.
These sizes can still be changed or removed by themes and plugins but that
is not recommended. The size "names" reflect the image dimensions, so
changing the sizes would be quite misleading.
Been wondering if we should make it impossible to change them, only let
themes and plugins to remove/unset them. Or perhaps we can detect changes
and output "doing-it-wrong"?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43524#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list